Skip to content

Commit fa6b15d

Browse files
committed
Github workflow
1 parent da53612 commit fa6b15d

6 files changed

Lines changed: 47 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build theme
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- '*'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: '16'
17+
cache: 'yarn'
18+
- run: yarn install
19+
- run: yarn build
20+
- uses: stefanzweifel/git-auto-commit-action@v4
21+
with:
22+
commit_message: yarn install && yarn build

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release theme
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v2
15+
- run: git archive --prefix=f1-mission-bit/ --format zip -o f1-mission-bit-${{ github.sha }}.zip ${{ github.head_ref }}
16+
- uses: ncipollo/release-action@v1
17+
with:
18+
artifacts: "f1-mission-bit-${{ github.sha }}.zip"

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.7
2+
3+
- Github workflow test
4+
15
## 1.0.6
26

37
- Testing

functions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@
5858

5959
//Set the branch that contains the stable release.
6060
$myUpdateChecker->setBranch('master');
61+
$myUpdateChecker->getVcsApi()->enableReleaseAssets();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "f1-mission-bit",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"scripts": {
55
"build": "yarn test && yarn format && NODE_ENV=production gulp build && yarn build-js && yarn build-scss",
66
"build-js": "parcel build ./assets/js/theme.js --out-dir ./dist/ --no-content-hash --log-level 4 --public-url ./ --no-cache",

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Theme URI: https://github.com/missionbit/f1-mission-bit
44
Author: Factor1 Studios
55
Author URI: https://factor1studios.com
66
Description: A custom WordPress theme for Mission Bit developed by Factor1
7-
Version: 1.0.6
7+
Version: 1.0.7
88
License: GPL-3.0
99
License URI:
1010
Text Domain:

0 commit comments

Comments
 (0)