Skip to content

Commit 86029c2

Browse files
committed
feat: Added build and deploy process with git workflow
1 parent d46048e commit 86029c2

File tree

180 files changed

+10688
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+10688
-1
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build and Deploy to SVN
2+
on:
3+
push:
4+
branches:
5+
- 91-error-on-wp-66-version
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: '14.17.5'
17+
18+
- name: Install dependencies
19+
run: npm install
20+
21+
- name: Build Plugin
22+
run: npm run build
23+
24+
- name: Extract version number
25+
id: get_version
26+
run: |
27+
version=$(grep -Po 'Version:\s*\K[\d.]+' qubely.php)
28+
echo "VERSION_NUMBER=$version" >> $GITHUB_ENV
29+
30+
# - name: WordPress Plugin Deploy
31+
# id: deploy
32+
# uses: 10up/action-wordpress-plugin-deploy@stable
33+
# with:
34+
# generate-zip: true
35+
# env:
36+
# SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
37+
# SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
38+
# BUILD_DIR: build
39+
40+
- name: Create GitHub release
41+
uses: softprops/action-gh-release@v1
42+
with:
43+
files: ${{ github.event.repository.name }}-${{ env.VERSION_NUMBER }}.zip
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+

build/qubely/assets/css/font-awesome.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/qubely/assets/css/qubely.bundle.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/qubely/assets/css/style.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
131 KB
Binary file not shown.

build/qubely/assets/fonts/fa-brands-400.svg

Lines changed: 1260 additions & 0 deletions
Loading
131 KB
Binary file not shown.
85 KB
Binary file not shown.
72.5 KB
Binary file not shown.
39.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)