create action archive cache.

This commit is contained in:
Tingluo Huang
2023-09-18 20:21:53 +00:00
parent 7751908620
commit 085299903d
6 changed files with 39 additions and 18 deletions
+6 -13
View File
@@ -6,8 +6,6 @@ on:
branches:
- main
pull_request: {}
schedule:
- cron: '0 0 * * 0'
jobs:
build:
@@ -25,14 +23,9 @@ jobs:
- name: Verify no unstaged changes
run: ./script/verify-no-unstaged-changes.sh
publish:
if: github.event_name != 'pull_request'
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: |
./script/build.sh
echo ${{ github.sha }} > ./_layout/SHA1
- name: Release
if: github.event_name == 'workflow_dispatch'
run: |
gh release create v${{github.sha}} --generate-notes ./_layout/action_cache.zip ./_layout/action_cache.tar.gz
env:
GH_TOKEN: ${{ github.token }}