Skip to content

Commit

Permalink
chore(workflows): リリース関連の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyme committed Aug 12, 2024
1 parent c5fbb2f commit 94f93cf
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,29 +71,48 @@ jobs:
name: version_files
path: ${{ github.workspace }}/package.json

update_package_json_misskey_js:
name: Update package.json (misskey-js)
runs-on: ubuntu-latest
needs:
- get_new_version
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Update package.json (misskey-js)
run: jq '.version = "${{ needs.get_new_version.outputs.version }}"' "${{ github.workspace }}/packages/misskey-js/package.json" --tab > tmp && mv tmp "${{ github.workspace }}/packages/misskey-js/package.json"

- name: Upload package.json (misskey-js)
uses: actions/upload-artifact@v3
with:
name: version_files
path: ${{ github.workspace }}/packages/misskey-js/package.json

update_docker_compose_yml:
name: Update docker-compose.yml
name: Update compose.yml
runs-on: ubuntu-latest
needs:
- get_new_version
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Update docker-compose.yml
run: yq -r eval '.services.web.image = "ghcr.io/${{ github.repository }}:${{ needs.get_new_version.outputs.version }}"' -i "${{ github.workspace }}/docker-compose_example.yml"
- name: Update compose.yml
run: yq -r eval '.services.web.image = "ghcr.io/${{ github.repository }}:${{ needs.get_new_version.outputs.version }}"' -i "${{ github.workspace }}/compose_example.yml"

- name: Upload docker-compose.yml
- name: Upload compose.yml
uses: actions/upload-artifact@v3
with:
name: version_files
path: ${{ github.workspace }}/docker-compose_example.yml
path: ${{ github.workspace }}/compose_example.yml

commit_tag_push:
name: Commit, Tag and Push
needs:
- get_new_version
- update_package_json
- update_package_json_misskey_js
- update_docker_compose_yml
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 94f93cf

Please sign in to comment.