Skip to content

ci: testing things

ci: testing things #34

name: Stable release
on:
push:
branches: [ main, test/ci ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install node dependencies
run: npm install -g rollup && npm install -g typescript
- name: Transpile typescript
run: tsc
- name: Show directories
run: ls -lha temp
- name: Minify the js ha
run: rollup ./temp/start.js --file ./out/start.js --format iife
- name: Minify the css
run: ./bin/lit -f styles.env
- name: Remove innecesary files and directories
run: rm -rf .gitignore temp styles/src src bin environment.js styles.env tsconfig.json .github
- name: Check the output
run: ls -lha .
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.3.0
with:
branch: gh-pages # The branch the action should deploy to.
folder: . # The folder the action should deploy.