changing hacknight to meetup for inline strings plus auto linting (#58) #124
This file contains hidden or 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 and Deploy Jekyll to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main # Adjust if your default branch is different | |
| # 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 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository (with submodules) | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.2' | |
| 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: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libvips libvips-dev imagemagick | |
| - name: Generate tag data (_data/tags.yml) | |
| run: | | |
| chmod +x _scripts/generate_tag_data.sh | |
| ./_scripts/generate_tag_data.sh | |
| - name: Generate tag pages (/tags/) | |
| run: | | |
| chmod +x _scripts/generate_tag_pages.sh | |
| ./_scripts/generate_tag_pages.sh | |
| - name: Generate category data (_data/categories.yml) | |
| run: | | |
| chmod +x _scripts/generate_category_data.sh | |
| ./_scripts/generate_category_data.sh | |
| - name: Generate category pages (/categories/) | |
| run: | | |
| chmod +x _scripts/generate_category_pages.sh | |
| ./_scripts/generate_category_pages.sh | |
| # - name: Generate thumbnail sizes | |
| # run: | | |
| # chmod +x _scripts/thumbnail_sizes.sh | |
| # ./_scripts/thumbnail_sizes.sh | |
| # Outputs to the './_site' directory by default | |
| - name: Build Jekyll site | |
| run: | | |
| bundle exec jekyll build | |
| - name: Upload artifact | |
| # Automatically uploads an artifact from the './_site' directory by default | |
| uses: actions/upload-pages-artifact@v3 | |
| deploy: | |
| 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 |