fork/static-web-server
git clone https://git.julia.blue/fork/static-web-server
ac72d4e
allow-symlink
1name : release-updates 2on : 3release : 4types : 5- published 6 7permissions : 8contents : write 9pull-requests : write 10 11jobs : 12release_updates : 13runs-on : ubuntu-22.04 14environment : release-updates-static-web-server 15steps : 16- name : Checkout 17uses : actions/checkout@v4 18with : 19ref : master 20 21- name : Prepare 22shell : bash 23run : | 24echo "SERVER_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV 25echo "version is: ${{ env.SERVER_VERSION }}" 26echo "PR_BRANCH_NAME=release-docs-${{ env.SERVER_VERSION }}-$(date -u '+%d-%m-%Y')" >> $GITHUB_ENV 27 28- name : Post release updates 29shell : bash 30env : 31UPLOAD_CHECKSUM : true 32GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 33run : | 34scripts/ci/post_release_updates.sh 35 36- name : Commit post release updates 37shell : bash 38env : 39GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 40run : | 41git config --global user.name 'github-actions[bot]' 42git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' 43 44git add scripts/installer.sh 45git add docs/content/download-and-install.md 46git add docs/content/download-and-install.template.md 47 48git commit --verbose -m "docs: ${{ env.SERVER_VERSION }} [skip ci]" 49git checkout -b ${{ env.PR_BRANCH_NAME }} 50git push --set-upstream origin --verbose ${{ env.PR_BRANCH_NAME }} 51 52- name : Create pull request for release updates 53env : 54GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 55run : | 56 gh pr create \ 57 --title "Post release ${{ env.SERVER_VERSION }} updates" \ 58 --body "An automated PR containing documentation and script installer updates corresponding to the current release \`${{ env.SERVER_VERSION }}\`.\n\nSee https://static-web-server.net/download-and-install/ for more details." \ 59 --base "master" \ 60 --head "${{ env.PR_BRANCH_NAME }}" \ 61 --label "v2" --label "enhancement" --label "documentation" --label "automated" \ 62 --draft