mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-01 07:18:23 -04:00
Use my own GitHub actions
This commit is contained in:
parent
0ab8bd67c4
commit
a4110a362f
2 changed files with 11 additions and 13 deletions
10
.github/workflows/docker.yml
vendored
10
.github/workflows/docker.yml
vendored
|
@ -39,17 +39,17 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get release version
|
- name: Get release version
|
||||||
id: get_version
|
id: get-version
|
||||||
uses: dawidd6/action-get-tag@v1
|
uses: tyrrrz/action-get-tag@v1
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
- name: Build container
|
- name: Build container
|
||||||
run: docker build -f DiscordChatExporter.Cli.dockerfile -t tyrrrz/discordchatexporter:stable -t tyrrrz/discordchatexporter:${{ steps.get_version.outputs.tag }} .
|
run: docker build -f DiscordChatExporter.Cli.dockerfile -t tyrrrz/discordchatexporter:stable -t tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }} .
|
||||||
|
|
||||||
- name: Push container (stable)
|
- name: Push container (stable)
|
||||||
run: docker push tyrrrz/discordchatexporter:stable
|
run: docker push tyrrrz/discordchatexporter:stable
|
||||||
|
|
||||||
- name: Push container (${{ steps.get_version.outputs.tag }})
|
- name: Push container (${{ steps.get-version.outputs.tag }})
|
||||||
run: docker push tyrrrz/discordchatexporter:${{ steps.get_version.outputs.tag }}
|
run: docker push tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }}
|
||||||
|
|
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
|
@ -111,19 +111,17 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get release version
|
- name: Get release version
|
||||||
id: get_version
|
id: get-version
|
||||||
uses: dawidd6/action-get-tag@v1
|
uses: tyrrrz/action-get-tag@v1
|
||||||
|
|
||||||
- name: Notify Discord
|
- name: Notify Discord
|
||||||
uses: satak/webrequest-action@v1.2.4
|
uses: tyrrrz/action-http-request@v1
|
||||||
with:
|
with:
|
||||||
url: ${{ secrets.DISCORD_WEBHOOK }}
|
url: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
method: POST
|
method: POST
|
||||||
headers: |
|
headers: |
|
||||||
{
|
ContentType: application/json; charset=UTF-8
|
||||||
"ContentType": "application/json; charset=UTF-8"
|
|
||||||
}
|
|
||||||
payload: |
|
payload: |
|
||||||
{
|
{
|
||||||
"content": "**DiscordChatExporter** new version released!\nVersion: `${{ steps.get_version.outputs.tag }}`\nChangelog: <https://github.com/Tyrrrz/DiscordChatExporter/blob/${{ steps.get_version.outputs.tag }}/Changelog.md>"
|
"content": "**DiscordChatExporter** new version released!\nVersion: `${{ steps.get-version.outputs.tag }}`\nChangelog: <https://github.com/Tyrrrz/DiscordChatExporter/blob/${{ steps.get-version.outputs.tag }}/Changelog.md>"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue