TrotCraft/.forgejo/workflows/pages.yml

33 lines
947 B
YAML
Raw Normal View History

2024-04-13 11:57:59 +02:00
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
2024-04-13 15:03:22 +02:00
runs-on: docker
2024-04-13 11:57:59 +02:00
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: |
2024-04-13 15:20:24 +02:00
mkdir /workspace/bin
mkdir TrotCraft/builds
2024-04-13 15:29:17 +02:00
export GOBIN=/workspace/bin
2024-04-13 15:25:08 +02:00
go install github.com/packwiz/packwiz@latest
2024-04-13 11:57:59 +02:00
cd TrotCraft/client
2024-04-13 15:32:39 +02:00
/workspace/bin/packwiz refresh --build
/workspace/bin/packwiz mr export -o ../builds/TrotCraft-latest.mrpack
2024-04-13 11:57:59 +02:00
cd ../server
2024-04-13 15:32:39 +02:00
/workspace/bin/packwiz refresh --build
2024-04-13 11:57:59 +02:00
- 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