Skip to content

Commit

Permalink
ci: add GitHub actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoskript committed Aug 31, 2023
1 parent c259147 commit 76c62cb
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout Git repository
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Generate
run: python3 compile.py

- name: Copy artifacts to public folder
run: cp onomatopoeia.json public/onomatopoeia.json

- name: Package web sources
run: tar -C public -czvf web-public.tar.gz public

- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Latest build"
files: |
onomatopoeia.json
web-public.tar.gz

0 comments on commit 76c62cb

Please sign in to comment.