Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use current date output in site deploy commit message
  • Loading branch information
0xdevalias committed Jul 26, 2020
commit 68b59e9891bc09e21930989f286f17d4c03a46e0
14 changes: 5 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ jobs:
- name: 🔨 install system dependencies
run: sudo apt-get install libgsl-dev
Comment on lines +33 to +34
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be cleaned up as part of #87

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we even want to clean it up anymore.. see #87 and #83 for more context/details.


- id: currentdate
name: 📅 get current date and time
run: echo "::set-output name=date_str::$(date)"

- name: 📅 check if date output was set correctly
run: echo ${{steps.currentdate.outputs.date_str}}

- name: 🔨 install dependencies & build site
uses: limjh16/jekyll-action-ts@v2
with:
Expand All @@ -49,11 +42,14 @@ jobs:
env:
JEKYLL_GITHUB_TOKEN: ${{ secrets.JEKYLL_GITHUB_TOKEN_PAT }}

- id: currentdate
name: 📅 get current date and time
run: echo "::set-output name=date_str::$(date)"

- name: 🚀 deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
publish_branch: jekyll-build-deploy-workflow-gh-pages
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be changed to the proper gh-pages branch before this PR is merged, and/or a better solution for testing in non-master PR's implemented (that won't override our production site deployment)

# commit_message: ${{ github.event.head_commit.message }}
# full_commit_message: ${{ github.event.head_commit.message }}
commit_message: ${{ steps.currentdate.outputs.date_str }}