Enabled screenshots by default #15
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: Build with Vite and deploy to the static server | |
on: | |
push: | |
branches: [ "v3" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: beta-deployment | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install fonttools | |
run: sudo apt-get install -y fonttools | |
- name: Build | |
run: | | |
npm install --global yarn | |
yarn | |
npx vite build | |
- name: Package | |
env: | |
ZIP_PASSWORD: ${{ secrets.ZIP_PASSWORD }} | |
ZIP_NAME: ${{ secrets.ZIP_NAME }} | |
ZIP_COMMENT: ${{ secrets.ZIP_COMMENT }} | |
run: | | |
cd dist/ | |
echo $ZIP_COMMENT| zip -r -q --password $ZIP_PASSWORD $ZIP_NAME * -z | |
- name: Deploy | |
env: | |
ZIP_NAME: ${{ secrets.ZIP_NAME }} | |
DEPLOYMENT_URL: ${{ secrets.DEPLOYMENT_URL }} | |
run: | | |
cd dist/ | |
curl -F "file=@$ZIP_NAME" $DEPLOYMENT_URL |