Skip to content

gmff letsgo

gmff letsgo #126

Workflow file for this run

name: To the Moon 🌙
on:
pull_request:
branches: [staging]
push:
branches:
- master
workflow_call:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Tailwind CSS
run: |
curl -sLo tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64
chmod +x tailwindcss
sudo mv tailwindcss /usr/bin/tailwindcss
- name: Setup Ruby
uses: ruby/setup-ruby@v1 # v1.161.0
with:
ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: setup node
uses: actions/setup-node@v2
with:
node-version: 18
- run: npm ci
# Generates service worker
- name: generate sw
run: npx workbox generateSW workbox-config.js
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
name: To the Moon
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4