diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e879b2400c8..15a830f1de7 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -66,7 +66,8 @@ jobs: # on PR events.. - name: deploy doc in subdirectory if: github.event_name == 'pull_request' - run: mike deploy ${{ github.head_ref }}_preview && mike props ${{ github.head_ref }}_preview --set-string hidden=true --push + run: mike deploy ${{ github.head_ref }}_preview + # TODO: set to true when the release is capable of the documentation ;) && mike props ${{ github.head_ref }}_preview --set-string hidden=true --push - name: comment link to preview if: github.event_name == 'pull_request' && github.event.action != 'closed' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000000..c15c0992c01 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +on: + push: + tags: + # Push events to matching v*, i.e. v1.0, v20.15.10 + - 'v^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-(0|[1-9A-Za-z-][0-9A-Za-z-]*)(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$' + +name: Create Release Draft + +jobs: + build: + name: Create Release Draft + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@master + - name: Create Release + id: create_release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + body: | + **TODO:** update changes in this Release + - First Change + - Second Change + - ... + [Documentation](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ github.ref }}/ + draft: true + prerelease: false \ No newline at end of file