Skip to content

Update countdowns

Update countdowns #329

name: Deploy to GitHub Pages
on:
push:
branches:
- main
paths:
- frontend/**
jobs:
gh-pages-deploy:
name: Deploying to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Install packages
run: |
cd frontend
npm install
cd ..
- name: Generate build number and date
run: |
APP_BUILD_NUM=$GITHUB_RUN_NUMBER.$GITHUB_SHA
APP_BUILD_DATE=`date`
echo "VUE_APP_BUILD_NUM=$APP_BUILD_NUM" > frontend/.env.production
echo "VUE_APP_BUILD_DATE=$APP_BUILD_DATE" >> frontend/.env.production
echo "VUE_APP_BACKEND_API_URI=https://api.xivtodo.com" >> frontend/.env.production
echo "VUE_APP_DISCORD_AUTH_URI=https://discord.com/api/oauth2/authorize?response_type=code&client_id=933567168912719923&scope=identify&redirect_uri=https%3A%2F%2Fxivtodo.com%2Fauth&prompt=consent" >> frontend/.env.production
- name: Deploy to gh-pages
run: |
git checkout --orphan gh-pages-test
cd frontend
npm run build
cd ..
git --work-tree frontend/dist add --all
git --work-tree frontend/dist commit -m "Automated dist build"
git push origin HEAD:gh-pages --force