mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:15:09 +00:00
ci: Fix deploy snap job
This commit is contained in:
parent
db144425db
commit
3448d4c12e
1 changed files with 1 additions and 3 deletions
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
|
@ -71,8 +71,6 @@ jobs:
|
||||||
|
|
||||||
promote_snapcraft:
|
promote_snapcraft:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out Git repository
|
- name: Check out Git repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -84,7 +82,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
SNAPCRAFT_TOKEN: ${{ secrets.SNAPCRAFT_TOKEN }}
|
SNAPCRAFT_TOKEN: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
echo "${{ SNAPCRAFT_TOKEN }}" >> snapcrafttoken.txt
|
echo "${{ env.SNAPCRAFT_TOKEN }}" >> snapcrafttoken.txt
|
||||||
snapcraft login --with snapcrafttoken.txt
|
snapcraft login --with snapcrafttoken.txt
|
||||||
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
||||||
if [ "$RELEASE_TYPE" = "rc" ]; then
|
if [ "$RELEASE_TYPE" = "rc" ]; then
|
||||||
|
|
Loading…
Reference in a new issue