Skip to content

Commit 73dbd43

Browse files
authored
im cooking
1 parent b3049ea commit 73dbd43

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,33 @@ jobs:
4040
- name: Install Dependencies and Build
4141
run: npm ci
4242

43-
- name: Commit and Push Build
43+
- name: Setup Pages
44+
uses: actions/configure-pages@v5
45+
- name: Upload artifact
46+
uses: actions/upload-pages-artifact@v3
47+
with:
48+
path: './'
49+
- name: Deploy to GitHub Pages
50+
uses: actions/deploy-pages@v4
51+
52+
- name: Checkout to develop-builds
53+
uses: actions/checkout@v3
54+
with:
55+
ref: develop-builds
56+
57+
- name: Clear out things
4458
run: |
45-
git config --local user.name "GitHub Action"
46-
git config --local user.email "action@github.com"
47-
git add .
48-
git commit -m "Update Builds"
49-
git push origin develop-builds
59+
rm -rf ./*
60+
61+
- name: Download artifact
62+
uses: actions/download-artifact@v4
63+
with:
64+
name: github-pages
65+
path: './'
66+
67+
- name: Commit
68+
uses: EndBug/add-and-commit@v9.1.1
69+
with:
70+
message: ${{ github.event.head_commit.message }}
71+
committer_name: GitHub Actions
72+
committer_email: actions@github.com

0 commit comments

Comments
 (0)