Skip to content

k33g GitHub Actions πŸ“¦ #3

k33g GitHub Actions πŸ“¦

k33g GitHub Actions πŸ“¦ #3

name: GitHub Actions Install
run-name: ${{ github.actor }} GitHub Actions πŸ“¦
on: [push]
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
env:
GO_ARCH: amd64
GO_VERSION: 1.21.3
steps:
- name: Install Go
run: |
sudo apt-get update
sudo apt-get install -y curl wget
wget https://golang.org/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
tar -xvf go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
sudo mv go /usr/local
rm go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
export PATH="/usr/local/go/bin:${PATH}"
export GOPATH="/home/${USER_NAME}/go"
export GOROOT="/usr/local/go"
- run: go version
Go-Deeper-With-GitHub-Actions:
runs-on: ubuntu-latest
needs: Explore-GitHub-Actions
steps:
- run: echo "πŸ‘‹ hello world 🌍"
- run: go version