Skip to content

Commit

Permalink
Add workflow to publish release on main.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaklin committed Sep 18, 2024
1 parent d8db1d7 commit 04df647
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/make_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Make new release

on:
push:
tags:
- "v*.*.*"
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
download-prebuilt-artifacts:
name: Download artifacts from build_artifacts.yml

runs-on: ubuntu-latest

uses: dawidd6/action-download-artifact@v6
with:
workflow: build_artifacts.yml
workflow_conclusion: success

create-release:
runs-on: ubuntu-latest

needs: download-prebuilt-artifacts

steps:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v4

- name: Organise files
shell: bash
run: |
mv sablast-candidate-x86_64-unknown-linux-musl/sablast-candidate-x86_64-unknown-linux-musl/sablast-candidate-x86_64-unknown-linux-musl.tar.gz sablast-${{ github.ref_name }}-x86_64-unknown-linux-musl.tar.gz
mv sablast-candidate-x86_64-apple-darwin/sablast-candidate-x86_64-apple-darwin.tar.gz sablast-${{ github.ref_name }}-apple-darwin.tar.gz
mv sablast-candidate-aarch64-apple-darwin/sablast-candidate-aarch64-apple-darwin.tar.gz sablast-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz
mv sablast-candidate-x86_64-unknown-linux-musl/sablast-candidate-x86_64-unknown-linux-musl/sablast-candidate-x86_64-unknown-linux-musl.tar.gz.sha256sum sablast-${{ github.ref_name }}-x86_64-unknown-linux-musl.tar.gz.sha256sum
mv sablast-candidate-x86_64-apple-darwin/sablast-candidate-x86_64-apple-darwin.tar.gz.sha256sum sablast-${{ github.ref_name }}-apple-darwin.tar.gz.sha256sum
mv sablast-candidate-aarch64-apple-darwin/sablast-candidate-aarch64-apple-darwin.tar.gz.sha256sum sablast-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz.sha256sum
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
fail_on_unmatched_files: true
generate_release_notes: true
files: |
sablast*

0 comments on commit 04df647

Please sign in to comment.