diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99fabae..187bb40 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 diff --git a/README.md b/README.md index b15092e..662eea9 100644 --- a/README.md +++ b/README.md @@ -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 +```