Skip to content

Nightly

Nightly #183

Workflow file for this run

name: Nightly
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
channel:
description: 'release to perform'
required: true
default: 'nightly'
type: choice
options:
- nightly
- date
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: udoprog/github-release@channel
id: release
with:
channel: ${{github.event.inputs.channel}}
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo run -p builder -- --channel ${{steps.release.outputs.channel}}
- uses: actions/upload-artifact@v3
with:
name: dist-${{matrix.os}}
path: dist
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: udoprog/github-release@channel
id: release
with:
channel: ${{github.event.inputs.channel}}
- uses: actions/download-artifact@v3
with: {name: dist-macos-latest, path: dist}
- uses: actions/download-artifact@v3
with: {name: dist-windows-latest, path: dist}
- uses: actions/download-artifact@v3
with: {name: dist-ubuntu-latest, path: dist}
- uses: udoprog/github-release@v1
with:
files: "dist/*"
name: ${{steps.release.outputs.channel}}
token: ${{secrets.GITHUB_TOKEN}}
prerelease: true