Release version 1.11.1 #13
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
# This workflow will create a GitHub release with a zip attachment | |
name: Release | |
on: | |
push: | |
tags: | |
- "[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
github-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/build | |
- name: Create zip file for release | |
run: | | |
mv dist cocoda | |
zip -r "cocoda-$(git describe --tags).zip" cocoda | |
- name: Set artifact name | |
run: | | |
echo "ARTIFACT_NAME=$(ls cocoda-*.zip)" >> $GITHUB_ENV | |
- name: Create GitHub release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Cocoda ${{ github.ref }} | |
body: TODO | |
draft: true | |
prerelease: false | |
- uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./${{ env.ARTIFACT_NAME }} | |
asset_name: ${{ env.ARTIFACT_NAME }} | |
asset_content_type: application/zip |