Public commit
This commit is contained in:
47
.github/workflows/builds.yml
vendored
Normal file
47
.github/workflows/builds.yml
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
name: Nightly Build
|
||||
|
||||
on:
|
||||
workflow_dispatch
|
||||
# schedule:
|
||||
# - cron: "0 0 * * *"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Use Node.js 14.x
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "14.x"
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Build
|
||||
run: pnpm run build
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ strftime('%Y-%m-%d-%H-%M-%S', localtime()) }}
|
||||
release_name: Nightly Build ${{ github.sha }}
|
||||
body: Nightly build
|
||||
draft: false
|
||||
prerelease: true
|
||||
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./dist
|
||||
asset_name: Nightly Build ${{ github.sha }}.zip
|
||||
asset_content_type: application/zip
|
Reference in New Issue
Block a user