create action archive cache.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user