@@ -37,10 +37,11 @@ jobs:
3737 # Store the version, stripping any v-prefix
3838 - name : Write release version
3939 run : |
40- TAG="${{ github.ref_name }}"
41- echo "TAG=${TAG}" >> "$GITHUB_ENV"
42- echo "VERSION=${TAG#v}" >> "$GITHUB_ENV"
43- echo "COMPOSER_VERSION=$(composer config version)" >> "$GITHUB_ENV"
40+ {
41+ echo "TAG=${{ github.ref_name }}"
42+ echo "VERSION=${TAG#v}"
43+ echo "COMPOSER_VERSION=$(composer config version)"
44+ } >> "$GITHUB_ENV"
4445
4546 - name : Validate composer.json and composer.lock
4647 run : composer validate
9899
99100 - name : Calculate SHA checksum (${{ matrix.version }})
100101 run : sha256sum "$TARGET"
102+
103+ - name : Run website build
104+ if : |
105+ startsWith(github.ref, 'refs/tags/v') &&
106+ contains(github.ref, 'alpha') != true &&
107+ contains(github.ref, 'beta') != true
108+ uses : actions/github-script@v6
109+ with :
110+ # Token has to be generated on a user account that controls the docs-repository.
111+ # The _only_ scope to select is "Access public repositories", nothing more.
112+ github-token : ${{ secrets.PAT_TOKEN }}
113+ script : |
114+ await github.rest.actions.createWorkflowDispatch({
115+ owner: 'simplesamlphp',
116+ repo: 'simplesamlphp.github.io',
117+ workflow_id: 'github-pages.yml',
118+ ref: 'release'
119+ })
0 commit comments