Added little explanation about length and capacity of slices #504
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
release: | |
types: [ published ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Build | |
run: ./build.sh | |
- name: Build books | |
run: ./build.books.sh | |
- name: Get release | |
id: get_release | |
if: github.event_name == 'release' && github.event.action == 'published' | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Attach generated epub upon release publish | |
if: github.event_name == 'release' && github.event.action == 'published' | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: ./learn-go-with-tests.epub | |
asset_name: learn-go-with-tests.epub | |
asset_content_type: application/epub+zip | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Attach generated PDF upon release publish | |
if: github.event_name == 'release' && github.event.action == 'published' | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: ./learn-go-with-tests.pdf | |
asset_name: learn-go-with-tests.pdf | |
asset_content_type: application/pdf | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |