Skip to content

Commit

Permalink
Corrected github actions script
Browse files Browse the repository at this point in the history
Version 1.0.0 release
  • Loading branch information
a-schild committed Sep 30, 2023
1 parent 53a4712 commit d7b15ee
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 30 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/build-plugin.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Generate Installable Plugin, and Upload as Release Asset
on:
release:
types:
- created
name: Releases

on:
push:
tags:
- '*'

jobs:
build:
name: Build and Release Asset
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Build project
run: |
composer install --no-dev --optimize-autoloader
Expand All @@ -24,18 +27,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.event.repository.name }}.zip
asset_name: churchtools-wp-sync
asset_name: churchtools-wp-sync.zip
tag: ${{ github.ref }}
overwrite: true
body: "This is my release text"
# - name: Upload artifact
# uses: actions/upload-artifact@v2
# with:
# name: graphql-api
# path: build/graphql-api.zip
# - name: Upload to release
# uses: JasonEtco/upload-to-release@master
# with:
# args: build/graphql-api.zip application/zip
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# body: "This is my release text"
5 changes: 5 additions & 0 deletions Changelog.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# churchtools-wp-calendarsync changelog

## 2023-09-30
- Automatic release build via github actions when
tag is pushed
- Use correct composer.lock file for churchtools api

## 2023-09-29
- Change licence from Apache 2.0 to GNU GPL 2
- Add events manager plugin detection and error handling if missing/inactive
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ event manager, the church tool sync process will not touch these.

## Installation of the plugin
- Make sure to have the events manager plugin installed and activated
- Checkout the source from to the wp-content/plugins folder
in a folder named churchtools-wpcalendarsync
- Change to this folder
- Install the dependencies with `composer install`
- Download the plugin from https://github.com/a-schild/churchtools-wp-calendarsync/releases
- Upload and activate it in your wordpress installation

## Configuration of the plugin
- We recommend to create a ctsync or similar wp account,
Expand Down
4 changes: 2 additions & 2 deletions churchtools-wpcalendarsync.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
*
*
* @link https://github.com/a-schild/churchtools-wp-calendarsync
* @since 0.1.0
* @since 1.0.0
* @package Ctwpsync
*
* @wordpress-plugin
* Plugin Name: Churchtools WP Calendarsync
* Plugin URI: https://github.com/a-schild/churchtools-wp-calendarsync
* Description: Churchtools wordpress calendar sync to events manager, requires "Events Manager" plugin. The sync is scheduled every hour to update WP events from churchtool.
* Version: 0.1.0
* Version: 1.0.0
* Author: André Schild
* Author URI: https://github.com/a-schild/churchtools-wp-calendarsync/
* License: GPLv2 or later
Expand Down
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d7b15ee

Please sign in to comment.