Skip to content

Commit ddcfbd9

Browse files
author
Lixi
authored
Merge pull request #5 from dice-group/develop
correcting CI
2 parents 4e8d9b9 + a46ff51 commit ddcfbd9

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,12 @@ jobs:
3434
- run: mvn javadoc:javadoc
3535
- run: sed -i "s/\$VERSION/$(cat version.log)/g" index.html
3636
- run: cp index.html ./site
37-
- name: Deploy
37+
- name: Deploy Site
3838
uses: peaceiris/actions-gh-pages@v3
3939
with:
4040
github_token: ${{ secrets.GITHUB_TOKEN }}
4141
publish_dir: ./site
4242
destination_dir: ./
43-
- name: Publish package
44-
run: mvn --batch-mode deploy
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4743
- name: Create Release
4844
id: create_release
4945
uses: actions/create-release@v1

.github/workflows/package.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish package to GitHub Packages
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
packages: write
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-java@v2
14+
with:
15+
java-version: '11'
16+
distribution: 'adopt'
17+
- name: Publish package
18+
run: mvn --batch-mode deploy
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)