mirror of
https://github.com/eRgo35/lyra.git
synced 2026-02-04 20:36:10 +01:00
ops: default branch yeet
This commit is contained in:
29
.github/workflows/release-phase.yml
vendored
29
.github/workflows/release-phase.yml
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
name: Release Please
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -7,18 +9,39 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
name: release-please
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-please:
|
release-please:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: googleapis/release-please-action@v4
|
- uses: googleapis/release-please-action@v4
|
||||||
|
id: release
|
||||||
with:
|
with:
|
||||||
# this assumes that you have created a personal access token
|
# this assumes that you have created a personal access token
|
||||||
# (PAT) and configured it as a GitHub action secret named
|
# (PAT) and configured it as a GitHub action secret named
|
||||||
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
|
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
|
||||||
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# this is a built-in strategy in release-please, see "Action Inputs"
|
# this is a built-in strategy in release-please, see "Action Inputs"
|
||||||
# for more options
|
# for more options
|
||||||
release-type: rust
|
release-type: rust
|
||||||
|
|
||||||
|
release-rust:
|
||||||
|
if: ${{needs.release-please.outputs.rust--release_created}}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: release-please
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
- name: Test
|
||||||
|
uses: clechasseur/rs-cargo@v2
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
args: --verbose --manifest-path hello-rust/Cargo.toml
|
||||||
|
- name: Build
|
||||||
|
uses: clechasseur/rs-cargo@v2
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --verbose --release --manifest-path hello-rust/Cargo.toml --target x86_64-unknown-linux-gnu
|
||||||
|
- name: Upload Release Artifact
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: gh release upload ${{ needs.release-please.outputs.hello-rust--tag_name }} hello-rust/target/x86_64-unknown-linux-gnu/release/hello_rust
|
||||||
|
|||||||
Reference in New Issue
Block a user