-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1.29 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 }}