Skip to content

Commit

Permalink
Fix the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Nov 5, 2022
1 parent b07f018 commit 5fd7fe8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: documentation

on:
push:
branches: [master, main]
paths: ['README.md']

jobs:
docker-hub-description:
name: Docker Hub Description
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- uses: peter-evans/dockerhub-description@v3 # Action page: <https://github.com/peter-evans/dockerhub-description>
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_USER_PASSWORD }}
repository: tarampampam/error-pages
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Generate builder values
id: values
run: echo "binary-name=tinifier-${{ matrix.os }}-${{ matrix.arch }}`[ ${{ matrix.os }} = 'windows' ] && echo '.exe'`" >> $GITHUB_STATE
run: echo "binary-name=tinifier-${{ matrix.os }}-${{ matrix.arch }}`[ ${{ matrix.os }} = 'windows' ] && echo '.exe'`" >> $GITHUB_OUTPUT

- name: Build application
env:
Expand Down Expand Up @@ -92,12 +92,13 @@ jobs:
- https://goproxy.cn
- https://goproxy.dev
steps:
- name: Set up Go
uses: actions/setup-go@v3
- uses: actions/setup-go@v3
with: {go-version: 1.19}

- {uses: gacts/github-slug@v1, id: slug}

- run: go mod init example

- name: Get the module using proxy
env:
GO111MODULE: on
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
This tool uses [tinypng.com][tinypng.com] API endpoint for compressing your local jpg/png images (it supports parallel jobs):

<p align="center">
<img src="./art/demo.gif">
<img src="https://user-images.githubusercontent.com/7326800/200132039-7a4fed2f-d2dc-4a71-a67d-27dadaaef8b4.gif">
</p>

> API key can be set using environment variable named `TINYPNG_API_KEY`; multiple keys are allowed - use `,` as a separator
Expand Down

0 comments on commit 5fd7fe8

Please sign in to comment.