Skip to content

Commit

Permalink
Merge assets and release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Folyd committed Jul 4, 2023
1 parent a37c369 commit 17285ef
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 58 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/assets.yaml

This file was deleted.

41 changes: 40 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,46 @@ defaults:
shell: bash

jobs:
create-release:
upload-assets:
name: ${{ matrix.target }}
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
tap: true
- target: x86_64-apple-darwin
os: macos-latest
tap: true
- target: x86_64-pc-windows-msvc
os: windows-latest
tap: false
- target: x86_64-unknown-linux-musl
tap: false
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: zine
target: ${{ matrix.target }}
tar: all
zip: windows
features: openssl-vendored
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
CARGO_PROFILE_RELEASE_LTO: true
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Update zine homebrew formula
if: ${{ matrix.tap == true }}
run: |
curl -X POST -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.TOKEN }}" \
-d '{"event_type":"version-updated","client_payload":{"version":"${{ steps.get_version.outputs.VERSION }}"}}' \
https://api.github.com/repos/zineland/homebrew-tap/dispatches
cargo-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 17285ef

Please sign in to comment.