diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-11-05 09:27:35 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-11-05 09:27:35 -0500 |
| commit | 85380b4b60bf74507a01957b29bd6e3808e216db (patch) | |
| tree | a43784660fdc29e5b95df3e358cf722eec2b092b /.github/workflows | |
| parent | ffef3a6be19d1139b6378c8119d444082dd0cbac (diff) | |
| parent | 29fc563863f561cdc707485289c5580b4397a580 (diff) | |
Merge pull request #10 from cobraguy/rewrite
Update to Svelte app
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/deploy.yml | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9932105..b79fbb6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,5 +1,5 @@ -name: Deploy to gh-pages - +name: Deploy to GitHub Pages + on: push: branches: [ master ] @@ -7,35 +7,21 @@ on: jobs: build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - - name: Setup node + - name: Setup Node uses: actions/setup-node@v2 with: node-version: '14' - - name: Install dependencies - run: npm ci - - - name: Build static files - run: npm run build - - - name: Init repo in dist folder and commit static files + - name: Install and Build run: | - cd dist - git init - git add -A - git config --local user.email "ghactions@github.com" - git config --local user.name "GitHub Action" - git commit -m "deploy" - - - name: Force push to gh-pages branch - uses: ad-m/github-push-action@v0.6.0 + npm ci + npm run build + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@4.1.5 with: - github_token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages - force: true - directory: ./dist - + folder: public
\ No newline at end of file |
