-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.45 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Release Plugin
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install Composer dependencies
run: composer install --no-dev --optimize-autoloader
- name: Zip project
run: zip -r invoiceninja.zip . -x '*.git*' assets/images/screenshot.png bump_version.sh .gitignore
- name: Upload app archive to workflow
uses: actions/upload-artifact@v3
with:
name: InvoiceNinja
path: invoiceninja.zip
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Create Release
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.commit_secret }}"
draft: false
prerelease: false
title: "Latest Release"
automatic_release_tag: "v1.0.6"
files: |
${{ github.workspace }}/artifacts/InvoiceNinja
# - name: Submit to WordPress Plugin Store
# env:
# WORDPRESS_USERNAME: ${{ secrets.WORDPRESS_USERNAME }}
# WORDPRESS_PASSWORD: ${{ secrets.WORDPRESS_PASSWORD }}
# run: |
# curl -u $WORDPRESS_USERNAME:$WORDPRESS_PASSWORD \
# -F 'plugin_name=plugin-name' \
# -F '[email protected]' \
# https://api.wordpress.org/plugins/add