mirror of
https://forgejo.merr.is/annika/actions-docker-extract.git
synced 2025-12-11 12:25:26 -05:00
35 lines
900 B
YAML
35 lines
900 B
YAML
name: "Package Action"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
|
|
env:
|
|
source: "main"
|
|
release: "release"
|
|
|
|
jobs:
|
|
package-changes:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: "${{ env.release }}"
|
|
fetch-depth: 0
|
|
ssh-key: "${{ secrets.COMMIT_KEY }}"
|
|
- uses: pr-mpt/actions-merge-branch@v2
|
|
with:
|
|
from: "origin/${{ env.source }}"
|
|
commit: false
|
|
- name: Install Javascript dependencies with npm
|
|
run: npm install
|
|
- name: Package action for distribution
|
|
run: npm run package
|
|
- name: Push packaged action to branch
|
|
uses: EndBug/add-and-commit@v7
|
|
with:
|
|
add: "['.', 'dist --force']"
|
|
branch: "${{ env.release }}"
|
|
default_author: github_actions
|
|
message: "build: Package action as `dist` with latest changes"
|