32 lines
947 B
YAML
32 lines
947 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: docker
|
|
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: |
|
|
mkdir /workspace/bin
|
|
mkdir TrotCraft/builds
|
|
export GOBIN=/workspace/bin
|
|
go install github.com/packwiz/packwiz@latest
|
|
cd TrotCraft/client
|
|
/workspace/bin/packwiz mr export -o ../builds/TrotCraft-latest.mrpack
|
|
/workspace/bin/packwiz refresh --build
|
|
cd ../server
|
|
/workspace/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
|