-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put cd back and update nokogiri (#171)
- Loading branch information
Showing
2 changed files
with
8 additions
and
39 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,38 +7,7 @@ on: | |
branches: [main] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check Git Status | ||
run: git status | ||
- name: Tag and Push Gem | ||
id: tag-and-push-gem | ||
uses: discourse/publish-rubygems-action@v3 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
GIT_EMAIL: ${{secrets.GUSTO_GIT_EMAIL}} | ||
GIT_NAME: ${{secrets.GUSTO_GIT_NAME}} | ||
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} | ||
RELEASE_COMMAND: git diff && rake release --backtrace | ||
- name: Create GitHub Release | ||
run: gh release create v${{steps.tag-and-push-gem.outputs.gem_version}} --generate-notes | ||
if: ${{ steps.tag-and-push-gem.outputs.new_version == 'true' }} | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
notify_on_failure: | ||
runs-on: ubuntu-latest | ||
needs: [deploy] | ||
if: ${{ failure() && github.ref == 'refs/heads/main' }} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
steps: | ||
- uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"text": "${{ github.repository }}/${{ github.ref }}: FAILED\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
} | ||
call-workflow-from-shared-config: | ||
uses: rubyatscale/shared-config/.github/workflows/cd.yml@main | ||
secrets: inherit | ||
|
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