mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-30 06:00:24 -08:00
Add: Workflow - for release
This commit is contained in:
parent
8226cdd7b5
commit
eb682809c8
1 changed files with 33 additions and 0 deletions
33
.github/workflows/release.yml
vendored
Normal file
33
.github/workflows/release.yml
vendored
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue