aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/release.yml
blob: d554a5f987097f14ee14d0857cb12bea6f956bf7 (plain) (blame)
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
# Publish pre-build release
name: Create Github release

on:
  push:
    tags: [v*]

jobs:
  build:
    name: Upload Release Asset
    runs-on: ubuntu-latest
    steps:
      - 
        name: Checkout
        uses: actions/checkout@v3
      - 
        name: Build project
        run: |
          yarn install
          yarn build
      - 
        name: Create artifact
        working-directory: "dist"
        run: zip -r ../homer.zip ./*
      - 
        name: Create Release
        id: create_release
        uses: softprops/action-gh-release@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          generate_release_notes: true
          files: |
            homer.zip