v20.41 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release pipeline | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
name: Publish release to CDN | |
runs-on: ubuntu-latest | |
env: | |
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} | |
steps: | |
- name: Clone project | |
uses: actions/checkout@v3 | |
- name: Prepare environment | |
run: | | |
echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV | |
- name: Prepare package | |
run: | | |
zip -9 -r tukui-$VERSION.zip Tukui | |
- name: Publish package | |
run: | | |
curl https://api.tukui.org/v1/upload/tukui-$VERSION.zip --upload-file tukui-$VERSION.zip -H "X-Tukui-Key: $DEPLOY_KEY" -H "Content-Type: application/zip" |