Skip to content

Merge pull request #50 from rhysnewell/deadlock_fix #19

Merge pull request #50 from rhysnewell/deadlock_fix

Merge pull request #50 from rhysnewell/deadlock_fix #19

Workflow file for this run

name: Publish Release
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
if: github.actor != 'dependabot[bot]'
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- id: 'compile'
uses: rhysnewell/[email protected]
with:
command: 'build'
- name: Package binaries
run: mkdir -p release/ && cp ${{ steps.compile.outputs.release-dir }}/rosella INSTALL.md release/
- name: Compress action step
uses: master-atul/[email protected]
id: compress
with:
command: c
cwd: ./
files: |
./release/
outPath: rosella-x86_64-unknown-linux-musl-${{ env.RELEASE_VERSION }}.tar.gz
- uses: actions/upload-artifact@v2
with:
name: binary
path: rosella-x86_64-unknown-linux-musl-${{ env.RELEASE_VERSION }}.tar.gz
- name: Create a Release
if: github.actor != 'dependabot[bot]'
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: "${{ env.RELEASE_VERSION }}"
title: "${{ env.RELEASE_VERSION }}"
files: |
rosella-x86_64-unknown-linux-musl-${{ env.RELEASE_VERSION }}.tar.gz