Islandora Sandbox 0.0.8 #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package Release | |
on: | |
release: | |
types: [created] | |
jobs: | |
package: | |
name: Package Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Remove build from docker-compose.yml | |
uses: mikefarah/[email protected] | |
with: | |
cmd: yq -i 'del(.services.drupal.build)' docker-compose.yml | |
- name: Create docker-compose.yml | |
run: | | |
TAG=${{ github.event.release.tag_name }} docker compose config > package/docker-compose.yml | |
- name: Remove required from docker-compose.yml | |
uses: mikefarah/[email protected] | |
with: | |
cmd: yq -i 'del(.services.traefik.depends_on.*.required)' package/docker-compose.yml | |
- name: Create zip | |
run: | | |
mv package islandora-sandbox-${{ github.event.release.tag_name }} | |
zip -r islandora-sandbox.${{ github.event.release.tag_name }}.zip islandora-sandbox-${{ github.event.release.tag_name }}/* | |
- name: Attach zip to Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: "Islandora Sandbox ${{ github.event.release.tag_name }}" | |
files: islandora-sandbox.${{ github.event.release.tag_name }}.zip | |
tag_name: ${{ github.event.release.tag_name }} | |
token: ${{ secrets.GITHUB_TOKEN }} |