Skip to content

Rename mac artifacts #14

Rename mac artifacts

Rename mac artifacts #14

Workflow file for this run

name: Make new release
on:
push:
tags:
- "v*.*.*"
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
create-release:
name: Create and publish release
runs-on: ubuntu-latest
environment: Make sablast release
steps:
- name: Download artifacts
uses: dawidd6/action-download-artifact@v6
with:
workflow: build_artifacts.yml
workflow_conclusion: success
- name: Organise files
shell: bash
run: |
mv sablast-candidate-x86_64-unknown-linux-musl/sablast-candidate-x86_64-unknown-linux-musl.tar.gz ./
mv sablast-candidate-x86_64-apple-darwin/sablast-candidate-x86_64-apple-darwin.tar.gz ./
mv sablast-candidate-aarch64-apple-darwin/sablast-candidate-aarch64-apple-darwin.tar.gz ./
- name: Rename mac artifacts
shell:bash

Check failure on line 34 in .github/workflows/make_release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/make_release.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
run: |
tar -zxvf sablast-candidate-x86_64-apple-darwin.tar.gz && mv sablast-candidate-x86_64-apple-darwin sablast-${{ github.ref_name }}-x86_64-apple-darwin && tar -zcvf sablast-candidate-x86_64-apple-darwin.tar.gz sablast-${{ github.ref_name }}-x86_64-apple-darwin
tar -zxvf sablast-candidate-aarch64-apple-darwin.tar.gz && mv sablast-candidate-aarch64-apple-darwin sablast-${{ github.ref_name }}-aarch64-apple-darwin && tar -zcvf sablast-candidate-aarch64-apple-darwin.tar.gz sablast-${{ github.ref_name }}-aarch64-apple-darwin
- name: Designate version
shell: bash
run: |
mv sablast-candidate-x86_64-unknown-linux-musl.tar.gz sablast-${{ github.ref_name }}-x86_64-linux-musl.tar.gz
mv sablast-candidate-x86_64-apple-darwin.tar.gz sablast-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz
mv sablast-candidate-aarch64-apple-darwin.tar.gz sablast-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%d %B %Y')"
- name: Publish
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.MAKE_RELEASE_TOKEN }}
name: sablast-${{ github.ref_name }} (${{ steps.date.outputs.date }})
draft: true
prerelease: false
fail_on_unmatched_files: true
generate_release_notes: true
files: |
sablast-${{ github.ref_name }}-x86_64-linux-musl.tar.gz
sablast-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz
sablast-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz