Skip to content

Commit

Permalink
feat: add workflow deploy web
Browse files Browse the repository at this point in the history
  • Loading branch information
matifandy8 committed Oct 15, 2023
1 parent 0bebc63 commit 7ca6334
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Website

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Deploy Website
run: |
mkdir website_temp
cp -r website/* website_temp/
git checkout --orphan temp-branch
git reset -- *
mv website_temp/* ./
rm -r website_temp
git add .
git commit -m "Deploy website"
git branch -D main
git branch -m main
git push -f origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7ca6334

Please sign in to comment.