-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π§βπ» add github action auto commit Build Artifact
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Auto Commit Build Artifact | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
env: | ||
IMAGE_TAG: ${{ github.ref_name }} | ||
IMAGE_NAME: ghcr.io/${{ github.repository }} | ||
|
||
jobs: | ||
build-image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- run: | | ||
npm i -g pnpm | ||
pnpm install | ||
pnpm run build | ||
- uses: EndBug/add-and-commit@v9 # You can change this to use a specific version. | ||
with: | ||
add: "dist" | ||
# Whether to push the commit and, if any, its tags to the repo. It can also be used to set the git push arguments (see the paragraph below for more info) | ||
# Default: true | ||
push: true | ||
default_author: github_actions | ||
committer_name: GitHub Actions | ||
committer_email: actions@github.com |
065a64e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failed to deploy: