Skip to content

Commit

Permalink
Add: Workflow - for release
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Jun 8, 2021
1 parent 8226cdd commit eb68280
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
tags:
- "v*" # push events to matching v*, i.e. v1.0, v20.15.10

jobs:
upload-files:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: "Lepton"
branch: "master"
- name: "Lepton-Phton-Style"
branch: "photon-style"
steps:
- uses: actions/checkout@v2
ref: ${{ matrix.branch }}

- name: Release Structure
run: |
mkdir -v chrome
mv -v * chrome/
mv -v chrome/user.js .
zip chrome user.js --out ${{ matrix.name }}.zip
- uses: softprops/action-gh-release@v1 # actions/create-release, actions/upload-release-asset is deprecated
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
${{ matrix.name }}.zip

0 comments on commit eb68280

Please sign in to comment.