-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (45 loc) · 1.67 KB
/
Copy pathrelease.yml
File metadata and controls
52 lines (45 loc) · 1.67 KB
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
43
44
45
46
47
48
49
50
51
52
name: Releases
on:
push:
tags:
- '*'
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Get version
id: get_version
run: |
VERSION=$(python3 - <<'PY'
import json
print(json.load(open('src/manifest.json'))['version'])
PY
)
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
- name: Create Zip Archive
run: |
mkdir -p build
rm -f "build/built-with-tailwind-css-${{ steps.get_version.outputs.version }}.zip"
(cd src && zip -r "../build/built-with-tailwind-css-${{ steps.get_version.outputs.version }}.zip" . -x "manifest.firefox.json")
- name: Create Firefox Zip Archive
run: ./scripts/package-firefox.sh
- name: Create or Update Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
artifacts: "build/built-with-tailwind-css-${{ steps.get_version.outputs.version }}.zip,build/built-with-tailwind-css-firefox-${{ steps.get_version.outputs.version }}.zip"
replacesArtifacts: true
draft: false
prerelease: false
allowUpdates: true
body: |
**New Release ${{ github.ref_name }} - Built with Tailwind CSS**
- Built with Tailwind CSS is a Chrome Extension that identifies the usage of Tailwind CSS in web pages.
- Includes the latest updates to the Built with Tailwind CSS extension.