add hep papers with julia (#10) #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
types: [opened, synchronize] | |
env: | |
BASE_URL: "www.juliahep.org" | |
PREVIEWS_PREFIX: "previews/PR" # will be followed by PR number | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 👀 Set preview path for PRs | |
run: | | |
if ${{ github.event_name == 'pull_request' }} | |
then | |
echo 'PRID=${{ env.PREVIEWS_PREFIX}}${{ github.event.number}}' >> $GITHUB_ENV | |
else | |
echo 'PRID=' >> $GITHUB_ENV | |
fi | |
shell: bash | |
- name: 🚀 Build and Deploy | |
uses: tlienart/xranklin-build-action@main | |
with: | |
BASE_URL_PREFIX: '' | |
PREVIEW: ${{ env.PRID }} | |
- name: 🗒️ Preview URL indication for PRs | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: | | |
Preview should be up in a couple of mins at | |
https://${{ env.BASE_URL }}/${{ env.PRID }} | |
(if you get a 404, wait 30s then refresh). | |
if: github.event_name == 'pull_request' |