TrotCraft/.forgejo/workflows/pages.yml
ArcaneSpark d2a0921c1e
Some checks are pending
Deploy / Deploy (push) Waiting to run
Update .forgejo/workflows/pages.yml
2024-04-13 15:00:21 +02:00

28 lines
779 B
YAML

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: sky-runner
name: Deploy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable' # The Go version to download (if necessary) and use.
- run: |
go install github.com/packwiz/packwiz@latest
cd TrotCraft/client
/home/runner/go/bin/packwiz refresh --build
cd ../server
/home/runner/go/bin/packwiz refresh --build
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy TrotCraft --project-name=trotcraft