@@ -2,52 +2,64 @@ name: release
22on :
33 push :
44 tags :
5- - ' v200 .[0-9]+.[0-9]+'
6- - ' v200 .[0-9]+.[0-9]+-beta.[0-9]+'
5+ - ' v2 .[0-9]+.[0-9]+'
6+ - ' v2 .[0-9]+.[0-9]+-beta.[0-9]+'
77
88permissions :
99 contents : write
1010 pull-requests : write
1111
1212jobs :
1313 checksum_file :
14- runs-on : ubuntu-22.04
15- environment : release-updates-static-web-server
14+ runs-on : ubuntu-24.04
1615 steps :
17- - name : Checkout
18- uses : actions/checkout @v4
16+ - name : Repository Dispatch
17+ uses : peter-evans/repository-dispatch @v4
1918 with :
20- ref : master
19+ token : ${{ secrets.GITHUB_TOKEN }}
20+ repository : static-web-server/docs
21+ event-type : event-docs-v2-install
22+ client-payload : ' {"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
2123
22- - name : Prepare
23- shell : bash
24- run : |
25- echo "SERVER_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
26- echo "version is: ${{ env.SERVER_VERSION }}"
24+ # checksum_file:
25+ # runs-on: ubuntu-22.04
26+ # environment: release-updates-static-web-server
27+ # steps:
28+ # - name: Checkout
29+ # uses: actions/checkout@v4
30+ # with:
31+ # ref: master
32+
33+ # - name: Prepare
34+ # shell: bash
35+ # run: |
36+ # echo "SERVER_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
37+ # echo "version is: ${{ env.SERVER_VERSION }}"
2738
28- - name : Commit post release updates changes
29- shell : bash
30- env :
31- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32- run : |
33- git config --global user.name 'github-actions[bot]'
34- git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
39+ # - name: Commit post release updates changes
40+ # shell: bash
41+ # env:
42+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+ # run: |
44+ # git config --global user.name 'github-actions[bot]'
45+ # git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
3546
36- echo "$(date)" >> file.txt
47+ # echo "$(date -u '+%d-%m-%Y' )" >> file.txt
3748
38- git add file.txt
39- git commit --verbose -m "docs: ${{ env.SERVER_VERSION }} [skip ci]"
40- git checkout -b release-docs-${{ env.SERVER_VERSION }}
41- git push --set-upstream origin --verbose release-docs-${{ env.SERVER_VERSION }}
49+ # git add file.txt
50+ # git commit --verbose -m "docs: ${{ env.SERVER_VERSION }} [skip ci]"
51+ # git checkout -b release-docs-${{ env.SERVER_VERSION }}
52+ # git push --set-upstream origin --verbose release-docs-${{ env.SERVER_VERSION }}
4253
43- - name : Create merge request
44- env :
45- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46- run : |
47- gh pr create \
48- --title "Documentation for release ${{ env.SERVER_VERSION }} [skip ci]" \
49- --body "This PR updates the corresponding documentation pages for the current release \`${{ env.SERVER_VERSION }}\`." \
50- --base "master" \
51- --head "release-docs-${{ env.SERVER_VERSION }}" \
52- --label "v2" --label "enhancement" --label "documentation" \
53- --draft
54+ # - name: Create merge request
55+ # env:
56+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+ # run: |
58+ # gh pr create \
59+ # --title "Documentation updates for release ${{ env.SERVER_VERSION }}" \
60+ # --body "This PR updates the corresponding documentation pages for the current release \`${{ env.SERVER_VERSION }}\`." \
61+ # --base "master" \
62+ # --head "release-docs-${{ env.SERVER_VERSION }}" \
63+ # --reviewer "joseluisq" \
64+ # --label "v2" --label "enhancement" --label "documentation" \
65+ # --draft
0 commit comments