forked from cfmleditor/CFLint
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 899 Bytes
/
Copy pathpublish.yml
File metadata and controls
35 lines (29 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Publishes com.github.mwinfie:cflint to GitHub Packages on each push to the
# skip-includes-fix branch (SNAPSHOT) and on release creation.
name: Publish package to GitHub Packages
on:
push:
branches: [ skip-includes-fix, master, main ]
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11 with GitHub Packages
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
server-id: github
server-username: GITHUB_ACTOR
server-password: GITHUB_TOKEN
- name: Build and publish to GitHub Packages
run: mvn -B deploy -DskipTests
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}