Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scx1332/dd #180

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build_nigthly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: |
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 }}-nightly -m "Nightly release ${{ steps.get_version.outputs.VERSION }}"
git push origin v${{ steps.get_version.outputs.VERSION }}-nightly
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
tags:
- "v*.*.*"
workflow_run:
workflows: ["Build nightly"]
types:
- completed

permissions:
packages: write
Expand All @@ -14,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
Expand Down
Loading