mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-25 14:04:55 +03:00
actions: don't use cut to create the REF value
This commit is contained in:
parent
e27ca452db
commit
640efe3b9c
4
.github/workflows/appimage.yml
vendored
4
.github/workflows/appimage.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
||||
|
||||
- name: Build docker image that produces the AppImage
|
||||
run: |
|
||||
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
|
||||
export REF=${GITHUB_REF#refs/*/}
|
||||
docker build -t xenial-appimage -f docker/xenial-appimage/Dockerfile .
|
||||
id=$(docker create --privileged xenial-appimage)
|
||||
docker start --attach $id
|
||||
@ -23,5 +23,5 @@ jobs:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
run: |
|
||||
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
|
||||
export REF=${GITHUB_REF#refs/*/}
|
||||
aws s3 mv yubioath-desktop-${REF}.AppImage s3://yubico-builds/yubioath-desktop/yubioath-desktop-${REF}.AppImage --acl public-read
|
||||
|
4
.github/workflows/macOS.yml
vendored
4
.github/workflows/macOS.yml
vendored
@ -82,7 +82,7 @@ jobs:
|
||||
|
||||
- name: Rename and archive app bundle
|
||||
run: |
|
||||
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
|
||||
export REF=${GITHUB_REF#refs/*/}
|
||||
mv yubioath-desktop.app Yubico\ Authenticator.app
|
||||
tar -czf yubioath-desktop-${REF}.app.tar.gz Yubico\ Authenticator.app
|
||||
|
||||
@ -91,5 +91,5 @@ jobs:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
run: |
|
||||
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
|
||||
export REF=${GITHUB_REF#refs/*/}
|
||||
aws s3 mv yubioath-desktop-${REF}.app.tar.gz s3://yubico-builds/yubioath-desktop/yubioath-desktop-${REF}.app.tar.gz --acl public-read
|
||||
|
Loading…
Reference in New Issue
Block a user