diff --git a/.github/workflows/auto-commit-build.yml b/.github/workflows/auto-commit-build.yml new file mode 100644 index 0000000..82f98c3 --- /dev/null +++ b/.github/workflows/auto-commit-build.yml @@ -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