Skip to content

v20.41

v20.41 #4

Workflow file for this run

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"