From 0c1d60f3906609956d329a7b70c98994db996be0 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 21 Jun 2024 13:33:05 +0200 Subject: [PATCH 1/5] Test build nightly --- .github/workflows/build_nigthly.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build_nigthly.yml diff --git a/.github/workflows/build_nigthly.yml b/.github/workflows/build_nigthly.yml new file mode 100644 index 00000000..ca69a95e --- /dev/null +++ b/.github/workflows/build_nigthly.yml @@ -0,0 +1,31 @@ +name: Build nightly + +on: + workflow_dispatch: + inputs: + build_profile: + description: 'Build profile' + required: true + default: 'release-fast' + +permissions: + contents: write + +jobs: + tag-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Get version from Cargo.toml + id: get_version + run: | + VERSION=$(grep '^version =' Cargo.toml | cut -d '"' -f2) + echo "VERSION=$VERSION" >> $GITHUB_OUTPUT + + - name: Create and push tag + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git tag -a v${{ steps.get_version.outputs.VERSION }} -m "Release ${{ steps.get_version.outputs.VERSION }}" + #git push origin v${{ steps.get_version.outputs.VERSION }} From b59aeed5eeb8dd54793c74913d717b2d8bc84d58 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 21 Jun 2024 13:35:07 +0200 Subject: [PATCH 2/5] Test build nightly --- .github/workflows/build_nigthly.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_nigthly.yml b/.github/workflows/build_nigthly.yml index ca69a95e..1fccb358 100644 --- a/.github/workflows/build_nigthly.yml +++ b/.github/workflows/build_nigthly.yml @@ -25,6 +25,7 @@ jobs: - name: Create and push tag run: | + echo "Created tag: v${{ steps.get_version.outputs.VERSION }}" git config user.name github-actions git config user.email github-actions@github.com git tag -a v${{ steps.get_version.outputs.VERSION }} -m "Release ${{ steps.get_version.outputs.VERSION }}" From c3eb4a9a1f91b7f85e821fb3993c53705f958e77 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 21 Jun 2024 13:37:40 +0200 Subject: [PATCH 3/5] Test build nightly --- .github/workflows/build_nigthly.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_nigthly.yml b/.github/workflows/build_nigthly.yml index 1fccb358..3137cb71 100644 --- a/.github/workflows/build_nigthly.yml +++ b/.github/workflows/build_nigthly.yml @@ -28,5 +28,5 @@ jobs: echo "Created tag: v${{ steps.get_version.outputs.VERSION }}" git config user.name github-actions git config user.email github-actions@github.com - git tag -a v${{ steps.get_version.outputs.VERSION }} -m "Release ${{ steps.get_version.outputs.VERSION }}" - #git push origin v${{ steps.get_version.outputs.VERSION }} + git tag -a v${{ steps.get_version.outputs.VERSION }}-nightly -m "Nightly release ${{ steps.get_version.outputs.VERSION }}" + git push origin v${{ steps.get_version.outputs.VERSION }}-nightly From 7de35d333e173288c6d188a082b2337482012123 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 21 Jun 2024 13:47:48 +0200 Subject: [PATCH 4/5] Test build nightly --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 710de94a..ffcada18 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,10 @@ on: push: tags: - "v*.*.*" + workflow_run: + workflows: ["Build nightly"] + types: + - completed permissions: packages: write From 42c9dbc7b72767f487e4ae0bf432dd099cef0cad Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 21 Jun 2024 13:52:29 +0200 Subject: [PATCH 5/5] Test build nightly --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ffcada18..13381513 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 + with: + tag_name: v0.4.5-nightly + title: "v0.4.5-nightly" + body: "Nightly release v0.4.5-nightly" frontend: name: Build frontend