-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 986 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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@v3
- name: set up node v16
uses: actions/setup-node@v3
with:
node-version: "16"
- 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@v1
with:
files: blog-codepoints.zip
if: startsWith(github.ref, 'refs/tags/')