fix: Adds date #899
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Weekly Build | |
on: | |
schedule: | |
- cron: '30 19 02 12 *' # Executes at 2024-12-02T11:30:00-08:00 | |
workflow_dispatch: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set Timezone | |
uses: szenius/[email protected] | |
with: | |
timezoneLinux: "America/Los_Angeles" | |
timezoneMacos: "America/Los_Angeles" | |
timezoneWindows: "Pacific Standard Time" | |
- name: LaTeX Build | |
uses: xu-cheng/latex-action@v3 | |
with: | |
root_file: presentation.tex | |
- name: Create Upload Artifact | |
run: | | |
cp presentation.pdf `date +e4e_weekly_presentation_%Y-%m-%dT%H-%M-%S.pdf` | |
mkdir out | |
cp presentation.pdf out/e4e_weekly_presentation.pdf | |
ls -al | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: e4e_weekly_presentation* | |
- name: Deploy to Github Pages | |
uses: JamesIves/[email protected] | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
branch: gh-pages | |
clean: true | |
single-commit: true | |
folder: out | |
git-config-name: e4e_github_actions | |
git-config-email: [email protected] | |
- name: Prepare Release Parameters | |
run: | | |
TZ='America/Los_Angeles' | |
echo "today_date=$(date -I)" >> $GITHUB_ENV | |
- name: Create Release | |
uses: marvinpinto/[email protected] | |
if: ${{ github.event_name == 'schedule' && github.ref == 'refs/heads/main' }} | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: ${{ env.today_date }} | |
prerelease: false | |
files: e4e_weekly_presentation* |