Skip to content

Commit

Permalink
ci: revert sveltekitci.yml (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
maehr authored Jan 22, 2024
1 parent 75dc8eb commit c52619e
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/sveltekitci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ on:
workflow_dispatch: null
repository_dispatch:
jobs:
build:
sveltekitci:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -60,37 +63,16 @@ jobs:
run: pnpm run postbuild
- name: Test
run: pnpm run test
- name: Upload build artifact
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.repository == 'Stadt-Geschichte-Basel/stadtgeschichtebasel.ch'
uses: actions/upload-artifact@v4
with:
name: build
path: build
retention-days: 1
deploy:
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.repository == 'Stadt-Geschichte-Basel/stadtgeschichtebasel.ch'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
# environment:
# name: github-pages
# url: '${{ steps.deployment.outputs.page_url }}'
steps:
- name: Download the build artifact
uses: actions/download-artifact@v4
with:
name: build
- name: Publish to Cloudflare Pages
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.repository == 'Stadt-Geschichte-Basel/stadtgeschichtebasel.ch'
uses: cloudflare/pages-action@v1
with:
apiToken: '${{ secrets.CLOUDFLARE_API_TOKEN }}'
accountId: '${{ secrets.CLOUDFLARE_ACCOUNT_ID }}'
projectName: stadtgeschichtebasel-ch
directory: build
# Optional: Enable this if you want to have GitHub Deployments triggered
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# gitHubToken: '${{ secrets.GITHUB_TOKEN }}'
# Optional: Switch what branch you are publishing to.
# By default this will be the branch which triggered this workflow
branch: main
Expand Down

0 comments on commit c52619e

Please sign in to comment.