Skip to content

Commit 7cf16cb

Browse files
authored
feat: Add build workflow (#3)
Co-authored-by: xxsimoxx
1 parent d796993 commit 7cf16cb

File tree

3 files changed

+32
-36
lines changed

3 files changed

+32
-36
lines changed

Diff for: .gitattributes

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.gitattributes export-ignore
2-
/bin export-ignore
2+
.github export-ignore
3+
.gitignore export-ignore

Diff for: .github/workflows/build.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Generate Installable Plugin, and Upload as Release Asset
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
name: Upload Release Asset
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
- name: setup git config
13+
run: |
14+
git config user.name "GitHub Actions Bot"
15+
git config user.email "<>"
16+
- name: Create artifact
17+
run : |
18+
git archive -o ${{ github.event.repository.name }}-${{ github.ref_name }}.zip --prefix ${{ github.event.repository.name }}/ HEAD
19+
ls
20+
- name: Upload artifact
21+
uses: actions/upload-artifact@v2
22+
with:
23+
name: ${{ github.event.repository.name }}-${{ github.ref_name }}
24+
path: ${{ github.event.repository.name }}-${{ github.ref_name }}.zip
25+
- name: Upload to release
26+
uses: JasonEtco/upload-to-release@master
27+
with:
28+
args: ${{ github.event.repository.name }}-${{ github.ref_name }}.zip application/zip
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: bin/release.sh

-35
This file was deleted.

0 commit comments

Comments
 (0)