Skip to content

Commit

Permalink
Added release workflow. Updated changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daveiano committed May 10, 2022
1 parent 26e75bf commit 8500ded
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build & release

on:
push:
tags:
- "v*"

jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: 🔨 setup node
uses: actions/setup-node@v2
with:
always-auth: true
node-version: "14"

- name: 🔨 install yarn and dependecies
run: |
npm i -g yarn
yarn set version latest
yarn install --network-timeout 1000000
- name: 🚀 Build JS & SCSS
run: yarn run build

- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: "zip"
filename: "weewx-wdc-${{github.ref_name}}.zip"
exclusions: "*.git* /*node_modules/* .vscode* .eslintrc.json .prettierignore .prettierrc.json package.json tsconfig.json yarn.lock skins/weewx-wdc/src*"

- uses: ncipollo/release-action@v1
with:
artifacts: "weewx-wdc-${{github.ref_name}}.zip"
draft: true
prerelease: true
generateReleaseNotes: true
bodyFile: changelog.md
token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 1.0.0-alpha1

- Basic Theme Structure
- Added pages for: Today, Week, Month, Year, All time stats
- Added Stat Tile
- Added Diagram Tile
- Added basic configs with skin.conf
2 changes: 2 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def __init__(self):
'skins/weewx-wdc/week.html.tmpl',
'skins/weewx-wdc/month.html.tmpl',
'skins/weewx-wdc/year.html.tmpl',
'skins/weewx-wdc/statistics.html.tmpl',
'skins/weewx-wdc/celestial.html.tmpl',
'skins/weewx-wdc/skin.conf',
'skins/weewx-wdc/lang/de.conf',
'skins/weewx-wdc/lang/en.conf',
Expand Down

0 comments on commit 8500ded

Please sign in to comment.