ci(nightly): update #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
continuous-integration: | |
uses: ./.github/workflows/ci.yml | |
build-installers: | |
needs: continuous-integration | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- platform: "windows-latest" | |
args: "" | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- name: Install Rust Nightly | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly-2024-06-25 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install frontend dependencies | |
run: npm clean-install | |
# Update tag and pre-release | |
# - Update (force-push) tag to the commit that is used in the workflow. | |
# - Upload artifacts defined by the user. | |
- uses: pyTooling/Actions/releaser@r0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: nightly | |
rm: false | |
files: none | |
- name: Change version | |
run: | | |
CURRENT_VERSION=$(jq -r '.version' package.json) | |
TIMESTAMP=$(date +%Y%m%d%H%M%S) | |
NIGHTLY_VERSION="${CURRENT_VERSION}-nightly.${TIMESTAMP}" | |
npm version "$NIGHTLY_VERSION" --no-git-tag-version | |
# If build fails we will be without a nightly build until the next push or workflow_dispatch | |
- uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} | |
with: | |
tagName: nightly | |
releaseName: Seelen UI Nightly | |
prerelease: true | |
args: ${{ matrix.args }} |