Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» add github action auto commit Build Artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
zuisong committed Jan 19, 2024
1 parent 2b59b9a commit 065a64e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/auto-commit-build.yml
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

1 comment on commit 065a64e

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 065a64e Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Module not found "file:///src/dist/main_deno.js".

Please sign in to comment.