I must say that I'm not familiar with GitHub workflows...
This commit is contained in:
parent
57f9d6abea
commit
6db67ae28b
30
.github/workflows/main.yml
vendored
30
.github/workflows/main.yml
vendored
@ -1,30 +0,0 @@
|
|||||||
name: Generate Installable Plugin or Theme, and Upload as Release Asset
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [published]
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Upload Release Asset
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: setup git config
|
|
||||||
run: |
|
|
||||||
git config user.name "GitHub Actions Bot"
|
|
||||||
git config user.email "<>"
|
|
||||||
- name: Create artifact
|
|
||||||
run : |
|
|
||||||
git archive -o ${{ github.event.repository.name }}-${{ github.ref_name }}.zip --prefix ${{ github.event.repository.name }}/ HEAD
|
|
||||||
ls
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: ${{ github.event.repository.name }}-${{ github.ref_name }}
|
|
||||||
path: ${{ github.event.repository.name }}-${{ github.ref_name }}.zip
|
|
||||||
- name: Upload to release
|
|
||||||
uses: JasonEtco/upload-to-release@master
|
|
||||||
with:
|
|
||||||
args: ${{ github.event.repository.name }}-${{ github.ref_name }}.zip application/zip
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
.git export-ignore
|
.git export-ignore
|
||||||
.gitignore export-ignore
|
.gitignore export-ignore
|
||||||
|
.github export-ignore
|
||||||
Loading…
x
Reference in New Issue
Block a user