Skip to content

Commit

Permalink
💤 muda assets da release para facilitar download de pdf sem zip
Browse files Browse the repository at this point in the history
  • Loading branch information
neninja committed May 27, 2022
1 parent 0713372 commit a206757
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ jobs:
- name: Build with pandoc
run: make book

- name: Zip book
run: zip -r intro-dev-web intro-dev-web.pdf intro-dev-web.epub

- name: Create release
id: create_release
uses: actions/create-release@v1
Expand All @@ -30,14 +27,18 @@ jobs:
draft: false
prerelease: false

- name: Upload release asset
id: upload-release-asset
- name: Upload PDF
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./intro-dev-web.pdf

- name: Upload EPUB
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./intro-dev-web.zip
asset_name: intro-dev-web.zip
asset_content_type: application/zip
# https://github.com/marketplace/actions/upload-a-release-asset
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./intro-dev-web.epub
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@

[![emojicom](https://img.shields.io/badge/emojicom-%F0%9F%90%9B%20%F0%9F%86%95%20%F0%9F%92%AF%20%F0%9F%91%AE%20%F0%9F%86%98%20%F0%9F%92%A4-%23fff)](http://neni.dev/emojicom)

[Livro](https://github.com/nenitf/intro-dev-web/releases/latest/download/intro-dev-web.zip) para iniciar pessoas interessadas na área de desenvolvimento web.
Livro para iniciar pessoas interessadas na área de desenvolvimento web.

- [Visualização online](http://neni.dev/intro-dev-web)
- [Download PDF](https://github.com/nenitf/intro-dev-web/releases/latest/download/intro-dev-web.pdf)
- [Download EPUB](https://github.com/nenitf/intro-dev-web/releases/latest/download/intro-dev-web.epub)

## Build local

- Todos formatos
```sh
make all
```
```sh
make all
```

- Livros (PDF e EPUB)
```sh
make book
```
```sh
make book
```

- Site
```sh
make html
```
```sh
make html
```

0 comments on commit a206757

Please sign in to comment.