Update autopublish.yml
This commit is contained in:
parent
f7ab291689
commit
f63a7027d6
7
.github/workflows/autopublish.yml
vendored
7
.github/workflows/autopublish.yml
vendored
@ -5,6 +5,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- run: |
|
||||||
|
ref="${github_ref////.}"
|
||||||
|
echo "::set-env name=ref::$ref"
|
||||||
|
env:
|
||||||
|
github_ref: ${{ github.ref }}
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
@ -15,4 +20,4 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUBPACKAGES_USER: ${{ secrets.GITHUBPACKAGES_USER }}
|
GITHUBPACKAGES_USER: ${{ secrets.GITHUBPACKAGES_USER }}
|
||||||
GITHUBPACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
GITHUBPACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||||
additional_version: "-build${{ github.run_number }}"
|
additional_version: "-$ref-build${{ github.run_number }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user