diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index fbdf241..902a4a0 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,43 +1,20 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages +name: Publish on: - # Runs on pushes targeting the default branch push: - branches: ["sugoi"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - + tags: + - "*" + jobs: - # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + release: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 with: - # Upload entire repository - path: '.' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + node-version: latest + - run: npm ci + - run: npx tsc + - run: npx wrangler pages deploy dist --project-name twitch-subathon-countdown + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index b512c09..371208e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +dist/js \ No newline at end of file diff --git a/config.html b/dist/config.html similarity index 100% rename from config.html rename to dist/config.html diff --git a/css/style.css b/dist/css/style.css similarity index 100% rename from css/style.css rename to dist/css/style.css diff --git a/index.html b/dist/index.html similarity index 77% rename from index.html rename to dist/index.html index 77b62db..68ba744 100644 --- a/index.html +++ b/dist/index.html @@ -16,11 +16,6 @@
00:00:00
-