Skip to content

Workflow file for this run

name: Release assets when push tags
on:
push:
tags:
- v[0-9]+.* # roughly matching version numbers
- release-*
jobs:
build:
uses: ./.github/workflows/build.yml
version:
uses: ./.github/workflows/version.yml
release:
needs:
- build
- version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download a built dist artifact
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.version.outputs.VERSION }}
release_name: ${{ needs.version.outputs.VERSION }}
draft: false
prerelease: false
- name: Generate release zip
run: |
make compress
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/Gitako.zip
asset_name: Gitako.zip
asset_content_type: application/zip