mirror of
https://forgejo.merr.is/annika/actions-docker-extract.git
synced 2025-12-13 21:37:53 -05:00
ci: Package action automatically on release branch (#15)
This commit is contained in:
parent
abde1147dd
commit
917745b929
9 changed files with 161 additions and 1623 deletions
19
.github/workflows/build_action.yaml
vendored
Normal file
19
.github/workflows/build_action.yaml
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
name: "Build Action (if not available)"
|
||||
|
||||
on: [workflow_call]
|
||||
|
||||
jobs:
|
||||
build-action:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: npm install
|
||||
- name: Build action (if not already built)
|
||||
if: "!startsWith(github.ref, 'refs/heads/release')"
|
||||
run: npm run build
|
||||
- name: Push build into cache
|
||||
if: "!startsWith(github.ref, 'refs/heads/release')"
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: dist
|
||||
key: build-${{ github.sha }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue