Skip to content

Weekly Build

Weekly Build #730

Workflow file for this run

name: Weekly Build
on:
schedule:
- cron: '30 18 30 09 *' # Executes at 2024-09-30T11:30:00-07: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*