Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Davilarek committed Sep 16, 2024
1 parent 35146f8 commit 782b6a2
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ on:
push:
branches:
- v1.x

permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: commit
uses: prompt/actions-commit-hash@v3
- uses: actions/setup-node@v4
Expand All @@ -24,11 +25,23 @@ jobs:
pnpm install
pnpm dist
- name: Clone BrowserFS-builds repository
run: |
git clone https://github.com/LosersUnited/BrowserFS-builds.git
mv dist BrowserFS-builds/dist
- uses: EndBug/add-and-commit@v9
uses: actions/checkout@v4
with:
cwd: './BrowserFS-builds'
default_author: github_actions
message: 'Automatic build based on ${{ steps.commit.outputs.hash }}'
path: ./BrowserFS-builds
token: ${{ secrets.PAT }}
repository: LosersUnited/BrowserFS-builds
- name: Move dist
run: |
mv ./dist ./BrowserFS-builds/dist
# - uses: EndBug/add-and-commit@v9
# with:
# cwd: './BrowserFS-builds'
# default_author: github_actions
# message: 'Automatic build based on ${{ steps.commit.outputs.hash }}'
- run: |
cd ./BrowserFS-builds
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Automatic build based on ${{ steps.commit.outputs.hash }}"
git push

0 comments on commit 782b6a2

Please sign in to comment.