Skip to content

Commit

Permalink
Merge pull request #7 from nkzarrabi/nkzarrabi-patch-2
Browse files Browse the repository at this point in the history
Update jekyll-gh-pages.yml
  • Loading branch information
nkzarrabi authored Dec 7, 2024
2 parents 1cf2800 + 8a22f7a commit efc5798
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
contents: write
pages: write
id-token: write

Expand Down Expand Up @@ -48,3 +48,22 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

# Release job
release:
needs: deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create Release
uses: actions/create-release@v1
with:
tag_name: "v${{ github.run_number }}"
release_name: "Deployed Site v${{ github.run_number }}"
body: "The latest version of the website is now live at: [${{ steps.deployment.outputs.page_url }}](${{ steps.deployment.outputs.page_url }})"
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit efc5798

Please sign in to comment.