Skip to content

feat(release): workflow added #2

feat(release): workflow added

feat(release): workflow added #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@master
- name: Compile
id: compile
uses: rust-build/[email protected]
with:
RUSTTARGET: x86_64-unknown-linux-musl
UPLOAD_MODE: none
- name: Get tag
id: tag
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG }}
release_name: "${{ github.event.repository.name }} ${{ env.TAG }}"
draft: false
prerelease: false
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.compile.outputs.BUILT_ARCHIVE }}
asset_name: "${{ github.event.repository.name }}-${{ env.TAG }}.zip"
asset_content_type: application/zip