-
-
Notifications
You must be signed in to change notification settings - Fork 71
38 lines (32 loc) · 916 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
name: "Create Release"
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Install dependencies
run: nix develop --impure --command npm install
- name: Build
run: nix develop --impure --command npm run build
- name: Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: Obsidian x Todoist - v${{ github.ref }}
draft: true
files: |
dist/main.js
dist/manifest.json
dist/styles.css