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 aad68e0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 21 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
name: Build Website

name: Build and Deploy
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 +31,15 @@ jobs:
run: npm run build
- name: Setup File System
run: >
mv build/ /tmp/ &&
mv CNAME build/ /tmp/ &&
rm -rf * &&
mv /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 /tmp/CNAME /tmp/build/* ./
- 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 aad68e0

Please sign in to comment.