Skip to content

Commit

Permalink
fix(release): Fix workflow call
Browse files Browse the repository at this point in the history
Signed-off-by: dark0dave <[email protected]>
  • Loading branch information
dark0dave committed Apr 21, 2023
1 parent a59eea3 commit b3c1323
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 64 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Build

on:
push:
branches: [main]
pull_request:
push:
tags:
- 'v*'

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -81,3 +82,28 @@ jobs:
path: |
target/${{matrix.target}}/release/mod_installer*
if-no-files-found: error
create-release:
permissions: write-all
needs: [build-windows, build-macos, build-linux]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- name: Get the tag
id: get_tag
run: echo ::set-output name=git_tag::${GITHUB_REF/refs\/tags\//}
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
path: release/
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: release/*
tag_name: ${{ steps.get_tag.outputs.git_tag }}
generate_release_notes: true
draft: ${{ startsWith(steps.get_tag.outputs.git_tag, 'nightly') != true }}
prerelease: ${{ startsWith(steps.get_tag.outputs.git_tag, 'nightly') }}
token: ${{ secrets.GITHUB_TOKEN }}
62 changes: 0 additions & 62 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit b3c1323

Please sign in to comment.