GeyserWiki/.github/workflows/build-pr.yml
2022-03-21 11:47:12 -05:00

29 lines
No EOL
744 B
YAML

# Based on https://github.com/KyoriPowered/adventure-docs
name: "Build PR"
on:
pull_request:
concurrency:
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
cancel-in-progress: true
jobs:
build:
uses: ./.github/workflows/build-artifact.yaml
with:
preview: true
url: "https://geysermc.github.io"
baseurl: "/docs-previews/pull/${{ github.event.number }}/"
publish-pr-number:
runs-on: "ubuntu-latest"
steps:
- name: "pr number / save"
run: "echo ${{ github.event.number }} > ./pr-num.txt"
- name: "pr number / publish"
uses: actions/upload-artifact@v3
with:
name: "pr-num"
path: "./pr-num.txt"
retention-days: 1