add more images #41
Workflow file for this run
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: create release | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'deploy-*' | |
workflow_dispatch: | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out repository | |
uses: actions/checkout@v4 | |
- name: set up node v20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: install npm packages | |
run: npm ci --silent --audit false --fund false | |
- name: run 11ty | |
run: npx @11ty/eleventy | |
env: | |
NODE_ENV: production | |
- name: publish current version | |
run: "echo '${{ github.ref_name }}' > blog.codepoints.net/version.txt" | |
- name: create zip file for release | |
run: zip -r blog-codepoints blog.codepoints.net | |
if: startsWith(github.ref, 'refs/tags/') | |
- name: create release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: blog-codepoints.zip | |
if: startsWith(github.ref, 'refs/tags/') |