Skip to content

Merge pull request #23 from KaSaNaa/refactor/update-docs #11

Merge pull request #23 from KaSaNaa/refactor/update-docs

Merge pull request #23 from KaSaNaa/refactor/update-docs #11

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*.*.*' # Trigger the workflow on version tags
jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Zip source code
run: |
zip -r source_code.zip .
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: source_code.zip
asset_name: source_code.zip
asset_content_type: application/zip