Skip to content

Commit

Permalink
Next release (#2)
Browse files Browse the repository at this point in the history
* new workflow
* tidying up files for next release
  • Loading branch information
neilpie authored Dec 7, 2023
1 parent 7113c5f commit ee1a799
Show file tree
Hide file tree
Showing 7 changed files with 707 additions and 129 deletions.
65 changes: 6 additions & 59 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,9 @@
name: Deploy on version tag added
name: Maybe Create a Release

on:
on:
push:
tags:
- '[0-9]+\.[0-9]+\.[0-9]+'
branches:
- main
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Add SSH key
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p /home/runner/.ssh
ssh-keyscan ${{ secrets.SSH_HOST }} >> /home/runner/.ssh/known_hosts
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /home/runner/.ssh/github_actions
chmod 600 /home/runner/.ssh/github_actions
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add /home/runner/.ssh/github_actions
# Install npm, and run install & build commands
# - name: NPM stuff
# uses: actions/setup-node@v3
# with:
# node-version: 14

# - run: npm install
# - run: npm run build

# Install composer requirements
- uses: "ramsey/composer-install@v2"
with:
dependency-versions: "locked"

# Push the update.json to WPE install
# TODO: change to using rsync
- name: RSync release-data.json
run: rsync -e "ssh -i /home/runner/.ssh/github_actions" release-data.json ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.SSH_DIR }}

# Remove update.json from local env
- run: cp README.md readme.txt

# Zip local env, excluding certain files (git related)
- name: Archive Release
uses: thedoctor0/zip-release@main
with:
directory: ../
filename: 'author-vcards.zip'
exclusions: 'author-vcards/*.git* author-vcards/package*.json author-vcards/README.* author-vcards/release-data.json author-vcards/__TEMP*'

# Push the zip up to storage
- name: RSync publish plugin zip to hosting
run: |
rsync -e "ssh -i /home/runner/.ssh/github_actions" ../author-vcards.zip ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.SSH_DIR }}
# Cleanup
run-release-workflow:
uses: pie/.github/.github/workflows/release.yaml@main
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions changelog.txt → changelog.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Adding in a robust updater

## [1.1.0] 2022-09-06
### Added filters around non-standard WP user fields in absence of meta
### Added PHP Namespaces

- Added filters around non-standard WP user fields in absence of meta
- Added PHP Namespaces

## [1.0.0] 2022-09-05
### Added

- Created vcf endpoint for author profiles
- initial build of functionality with hardcoded client info and presumed meta data
- initial build of functionality with hardcoded client info and presumed meta data

10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "pie/author-vcards",
"version": "1.1.0",
"description": "A plugin to add VCF endpoints to an author URL",
"main": "author-vcards.php",
"repository": "git@github.com:pie/author-vcards.git",
"author": "The team at PIE <dev@pie.co.de>",
"license": "GPL",
"private": false
}
37 changes: 0 additions & 37 deletions readme.txt

This file was deleted.

29 changes: 0 additions & 29 deletions release-data.json

This file was deleted.

8 changes: 8 additions & 0 deletions update.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "Author VCards",
"version": "1.1.0",
"download_url": "https://github.com/pie/author-vcards/releases/download/1.1.0/author-vcards.zip",
"sections": {
"description" : "A plugin to add VCF endpoints to an author URL"
}
}

0 comments on commit ee1a799

Please sign in to comment.