This commit is contained in:
parent
5dccdf0878
commit
a99bfe380e
1 changed files with 6 additions and 2 deletions
|
@ -14,17 +14,21 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: 'main'
|
ref: 'main'
|
||||||
|
|
||||||
- name: "Make archives"
|
- name: Make archives
|
||||||
run: |
|
run: |
|
||||||
mkdir dist && \
|
mkdir dist && \
|
||||||
find * -maxdepth 0 -name "pages.*" -exec sh -c "cd {} && zip -qqr ../dist/tldr-{}.zip ." \; && \
|
find * -maxdepth 0 -name "pages.*" -exec sh -c "cd {} && zip -qqr ../dist/tldr-{}.zip ." \; && \
|
||||||
cd dist && \
|
cd dist && \
|
||||||
sha256sum -- *.zip > tldr.sha256sums
|
sha256sum -- *.zip > tldr.sha256sums
|
||||||
|
|
||||||
|
- name: Get current date
|
||||||
|
id: date
|
||||||
|
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
||||||
|
|
||||||
- uses: actions/forgejo-release@v1
|
- uses: actions/forgejo-release@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
direction: upload
|
direction: upload
|
||||||
release-dir: dist
|
release-dir: dist
|
||||||
override: true
|
override: true
|
||||||
tag: nightly
|
tag: nightly-${{ steps.date.outputs.date }}
|
Loading…
Add table
Reference in a new issue