Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Alex-nz/plugin-gallery into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Sokolov, Alex committed Nov 26, 2024
2 parents fec3155 + ad7decc commit 75e4e78
Show file tree
Hide file tree
Showing 4 changed files with 635 additions and 125 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
env:
XML_SCHEMA: "plugins.xsd"

name: plugin-gallery
name: plugin-gallery
jobs:
plugin-gallery:
runs-on: ubuntu-latest
Expand All @@ -31,48 +31,48 @@ jobs:
shell: bash

- name: Clone user plugin-gallery for push
if: ${{ github.event_name == 'push'}}
if: ${{ github.event_name == 'push' }}
run: |
cd ~/${{github.event.pull_request.head.repo.name || github.event.repository.name }}
git remote add user_repo https://github.com/${{ github.repository}}
cd ~/${{ github.event.pull_request.head.repo.name || github.event.repository.name }}
git remote add user_repo https://github.com/${{ github.repository }}
git fetch user_repo ${{ github.head_ref || github.ref_name }}
git checkout -b user_repo/${{ github.head_ref || github.ref_name }}
shell: bash

- name: lone user plugin-gallery for pull request
if: ${{github.event_name == 'pull_request'}}
if: ${{ github.event_name == 'pull_request' }}
run: |
cd ~/${{github.event.pull_request.head.repo.name || github.event.repository.name }}
git remote add user_repo ${{ github.event.pull_request.head.repo.html_url}}
git fetch user_repo ${{ github.event.pull_request.head.ref}}
git checkout user_repo/${{ github.event.pull_request.head.ref}}
cd ~/${{ github.event.pull_request.head.repo.name || github.event.repository.name }}
git remote add user_repo ${{ github.event.pull_request.head.repo.html_url }}
git fetch user_repo ${{ github.event.pull_request.head.ref }}
git checkout user_repo/${{ github.event.pull_request.head.ref }}
shell: bash

- name: Validate against plugins.xd schema
- name: Validate against plugins.xsd schema
run: |
cd ~/${{github.event.pull_request.head.repo.name || github.event.repository.name }}
cd ~/${{ github.event.pull_request.head.repo.name || github.event.repository.name }}
xmllint --schema ./plugins.xsd ./plugins.xml --noout
shell: bash

- name: Validate all releases
if: ${{ github.event_name == 'push' && github.head_ref == 'main'}}
- name: Validate all releases
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: |
cd ~/${{github.event.pull_request.head.repo.name || github.event.repository.name }}
cd ~/${{ github.event.pull_request.head.repo.name || github.event.repository.name }}
pkp-plugin validate-all-releases --input ./plugins.xml
shell: bash

- name: Validate new release
if: ${{ github.event_name == 'pull_request'}}
if: ${{ github.event_name == 'pull_request'}}
run: |
cd ~/${{github.event.pull_request.head.repo.name || github.event.repository.name }}
cd ~/${{ github.event.pull_request.head.repo.name || github.event.repository.name }}
git remote -v
git branch
pkp-plugin validate-new-release
shell: bash

- name: Generate site
if: ${{ github.event_name == 'push' && github.head_ref == 'main'}}
- name: Generate site
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: |
cd ~/${{github.event.pull_request.head.repo.name || github.event.repository.name }}
GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}} pkp-plugin generate-site ./plugins.xml
cd ~/${{ github.event.pull_request.head.repo.name || github.event.repository.name }}
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} pkp-plugin generate-site ./plugins.xml
shell: bash
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[![Build Status](https://app.travis-ci.com/pkp/plugin-gallery.svg?branch=main)](https://travis-ci.org/pkp/plugin-gallery)
[![Build Status](https://github.com/pkp/plugin-gallery/actions/workflows/main.yml/badge.svg)](https://github.com/pkp/plugin-gallery/actions/workflows/main.yml)

# Plugin Gallery

This repository contains PKP's Plugin Gallery XML file. The live version of the file is published on: [http://pkp.sfu.ca/ojs/xml/plugins.xml](http://pkp.sfu.ca/ojs/xml/plugins.xml). This is what presents a list of compatible plugins in OJS, OMP, and OPS for possible installation.
This repository contains PKP's Plugin Gallery XML file. The live version of the file is published on: [http://pkp.sfu.ca/ojs/xml/plugins.xml](http://pkp.sfu.ca/ojs/xml/plugins.xml). This is a list of compatible plugins in OJS, OMP, and OPS for possible installation.

## Adding A New Plugin

If you'd like to add a new plugin or plugin release to the Plugin Gallery, you can use Github to propose changes here. They will be tested and if they are accepted they will be merged and become part of the Plugin Gallery.
If you'd like to add a new plugin or plugin release to the Plugin Gallery, you can use GitHub to propose changes here. They will be tested and if they are accepted they will be merged and become part of the Plugin Gallery.

To add a new plugin, or make a new release of an existing plugin:

- Fork this repository to your own Github account
- Fork this repository to your own GitHub account
- Edit the [XML file](./plugins.xml) in your fork to add a new `<plugin>` or `<release>` element (see [Get the Plugin into the Plugin Gallery](https://docs.pkp.sfu.ca/dev/plugin-guide/en/release#get-the-plugin-into-the-plugin-gallery))
- Open a Pull Request against this repository with the updated XML from your fork
- Once it passes the build and it is reviewed by the maintainers, it will be merged and become part of the Plugin Gallery.
- Once it passes the build and is reviewed by the maintainers, it will be merged and become part of the Plugin Gallery.

## Checks run on the PRs

Expand Down
Loading

0 comments on commit 75e4e78

Please sign in to comment.