diff --git a/.githib/workflows/deploy.yml b/.githib/workflows/deploy.yml new file mode 100644 index 0000000..f1ebc71 --- /dev/null +++ b/.githib/workflows/deploy.yml @@ -0,0 +1,33 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20' + - run: yarn build + - uses: actions/upload-pages-artifact@v3 + with: + path: ./dist + + deploy: + name: Deploy + needs: build + runs-on: ubuntu-latest + + permissions: + pages: write + id-token: write + + steps: + - uses: actions/deploy-pages@v4