Skip to content

Commit

Permalink
different release
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankelJb committed Aug 6, 2023
1 parent 04f9217 commit 5a059eb
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,42 @@ on:

jobs:
release:
name: Create Release
name: release ${{ matrix.target }} (with non-required env)
runs-on: ubuntu-latest
if: github.event_name == 'release'
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-musl
archive: tar.gz
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release
uses: actions/create-release@latest
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/rust-build.action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false

publish:
name: publish ${{ matrix.name }}
needs:
- release
RUSTTARGET: ${{ matrix.target }}
EXTRA_FILES: "README.md"
SRC_DIR: "."
ARCHIVE_TYPES: ${{ matrix.archive }}
PRE_BUILD: "pre_build.sh"
POST_BUILD: "test/post_build.sh"
MINIFY: "yes"
release_without_not_required:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- target: x86_64-unknown-linux-musl
archive: tar.gz
runs-on: ubuntu-latest
target: [x86_64-unknown-linux-musl]
steps:
- name: Clone test repository
uses: actions/checkout@v2
- uses: xhaiker/rust-release.action@v1.0.0
name: build ${{ matrix.name }}
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/rust-build.action@master
with:
release: ${{ github.ref_name }}
rust_target: ${{ matrix.target }}
archive_suffix: ${{ matrix.suffix }}
archive_types: ${{ matrix.archive }}
extra_files: "README.md"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUSTTARGET: ${{ matrix.target }}
UPLOAD_MODE: none
- name: Checkout output
run: ls -laR

0 comments on commit 5a059eb

Please sign in to comment.