Skip to content

Commit

Permalink
ci: Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHamkerCat committed Sep 14, 2022
1 parent e98fd3f commit fde9940
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
name: Release

permissions:
contents: write

on:
release:
types: [created]
push:
tags:
- v[0-9]+.*

jobs:
release:
name: release ${{ matrix.target }}
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1
with:
token: ${{ secrets.TOKEN }}

upload-assets:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
- uses: actions/checkout@v3
- uses: taiki-e/upload-rust-binary-action@v1
with:
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: "README.md LICENSE"
bin: wallrus
include: LICENSE,README.md
token: ${{ secrets.TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wallrus"
version = "1.0.2"
version = "1.2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down

0 comments on commit fde9940

Please sign in to comment.