Skip to content

Commit

Permalink
Re-attempting deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jlurena committed Nov 25, 2023
1 parent 9041a1d commit 899cb86
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 20 deletions.
47 changes: 27 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
name: Build Website

name: Build and Deploy
env:
PUBLIC_URL: https://monicauxui.design
on:
workflow_dispatch:
push:
branches:
- main
branches: main
concurrency:
group: pages
cancel-in-progress: false
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Build gh-page
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -22,21 +33,17 @@ jobs:
run: npm run build
- name: Setup File System
run: >
mv build/ /tmp/ &&
mv CNAME build/ /tmp/ &&
rm -rf * &&
mv /tmp/build/ . &&
mv /tmp/CNAME /tmp/build/ ./ &&
mv build/index.html . &&
mv build public &&
ls
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git commit -m "build" || true
- name: Push changes
uses: ad-m/github-push-action@master
mv build public
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-page
force: true
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
www.monicauxui.design

0 comments on commit 899cb86

Please sign in to comment.