From ddd6fb5a9df438f6b2881989db6b0fc7923339fd Mon Sep 17 00:00:00 2001 From: Mani Date: Sat, 1 Jun 2024 12:20:28 +0330 Subject: [PATCH 01/22] New frames --- frames/frames.go | 1 + frames/snoopy.go | 104 +++++++++++++++++++++++++++++++++++++++++++++++ main.go | 2 +- 3 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 frames/snoopy.go diff --git a/frames/frames.go b/frames/frames.go index 4d5a23a..d237904 100644 --- a/frames/frames.go +++ b/frames/frames.go @@ -56,4 +56,5 @@ var FrameMap = map[string]FrameType{ "rick": Rick, "spidyswing": Spidy, "torus-knot": TorusKnot, + "snoopy": Snoopy, } diff --git a/frames/snoopy.go b/frames/snoopy.go new file mode 100644 index 0000000..b539c23 --- /dev/null +++ b/frames/snoopy.go @@ -0,0 +1,104 @@ +package frames + +var MyAnimation = DefaultFrameType(myAnimationFrames) + +var myAnimationFrames = []string{ + ` + @@%%@@ + @@@@@@@@@@@ @@@@@@ + @@@ @@@@@@@@ @ @@@@ + @@@ @@@@@@@@@@ @@ @@@@@@ + @@@@@@@@@@@@ @@@ @@@@@@ + @@@@@@@ @@@@@@@@@ @ + @@@@@@@@@@@@@ @@@@@@ @@@ + @@@@@@@@@@@@@@@@@@@@@@@ @@@ @@@@@@@ @@ + @@@@@ @@@@@@@ @@ @@@ @@@@@@@@@@ @@@ @@ + @@@ @@@@@@@@@@@@@ @@ @@ + @@ @@@ @@@@@ @@ @@@@@@@@@@ @@@ @@ + @@@ @@ @@@@@ @@@@ @@@@@ @@@ @@@ + @ @@@ @@@@@@ @@ @@@ @@@@ + @@ @@ @@@@@@@@ @@ @@@@ + @@ @@ @@ @@@@@ @@@ @@@ + @@@ @@@ @@@ @@ + @@@ @@ @@@ @@@ + @@ @@@ @@@@ @@ @@@ + @@ @@@ @@@@@@@@ @@@ @@@ + @@@ @@@@ @@@@@ @@@@ @@@@ + @@@ @@@@@@@@ @@@@@ @@@@@ + @@ @@@@ @@@@@@@@@@ @@@@@@@@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+ @@@ @@ @@@ @@@ + @@ @@@ @@@@ @@ @@@ + @@ @@@ @@@@@@@@ @@@ @@@ + @@@ @@@@ @@@@@ @@@@ @@@@ + @@@ @@@@@@@@ @@@@@ @@@@@ + @@ @@@@ @@@@@@@@@@ @@@@@@@@@ + @@@@@@@ @@ @@ @@@@@@@ + @@@@ @@ @@@@@@@@@@ @@ + @@@@ @@@@@@@@@@@@@ @@ @@ @@ @@@ + @@@ @@@@@ @@@ @@@ @@@ + @@@@@@ @@@@@@@@@@ @@@@ + @@@ @@@@@@@@ @@@ + @@@ @@ @@@ @ + @@@ @@@@@@@@@@ @@@@@ @@@@ + @@@ @@ @@@@@@ @@@ + @@ @@ @@@ + @@ @@@@ @@ + @@@ @@@ @@@@ @@ @@ + @@@@@@@@@ @@@@ @@@@@@@@ @@ @@ + @@@@ @@ @@@@@@@ @@@@@@@@@@@ @@@ @@ + @@@@@@ @ @@@ @@@@@@@@@@@@@ @@ @ + @@ @@@ @@@@@@@ @@@@@@@@@@@ @@ @@ + @@ @@@ @@@@@@@@@@ @@@@@@@@@@@ @@ @@ + @@@ @@@ @@@@@@@@@@@@@@@@ @ + @@ @@@ @@@@@@@@@@@@@@ @@ + @@@@@@ @@@ @@@@ @@ @@@@@@@ @@@ + @@@@@ @@ @@@ @@@ @@@@@ @@@ + @@@ @@ @@ @@@ @@@@@ @@@@ + @@@@@@@@@@@@ @@@@@@@@@@@`, + } \ No newline at end of file diff --git a/main.go b/main.go index 78e9e3e..8c86491 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/hugomd/ascii-live/frames" + "github.com/MaArasteh/ascii-live/frames" "github.com/golang/glog" "github.com/gorilla/mux" From e121e164ce6c55b2f27a08c4361ceb4f43a0d637 Mon Sep 17 00:00:00 2001 From: Mani Date: Sat, 1 Jun 2024 12:48:26 +0330 Subject: [PATCH 02/22] Added new frames --- frames/frames.go | 2 +- frames/snoopy.go | 104 -------------- frames/snoopydance.go | 307 ++++++++++++++++++++++++++++++++++++++++++ main.go | 2 +- 4 files changed, 309 insertions(+), 106 deletions(-) delete mode 100644 frames/snoopy.go create mode 100644 frames/snoopydance.go diff --git a/frames/frames.go b/frames/frames.go index d237904..7bc5166 100644 --- a/frames/frames.go +++ b/frames/frames.go @@ -56,5 +56,5 @@ var FrameMap = map[string]FrameType{ "rick": Rick, "spidyswing": Spidy, "torus-knot": TorusKnot, - "snoopy": Snoopy, + "snoopydance": SnoopyDancing, } diff --git a/frames/snoopy.go b/frames/snoopy.go deleted file mode 100644 index b539c23..0000000 --- a/frames/snoopy.go +++ /dev/null @@ -1,104 +0,0 @@ -package frames - -var MyAnimation = DefaultFrameType(myAnimationFrames) - -var myAnimationFrames = []string{ - ` - @@%%@@ - @@@@@@@@@@@ @@@@@@ - @@@ @@@@@@@@ @ @@@@ - @@@ @@@@@@@@@@ @@ @@@@@@ - @@@@@@@@@@@@ @@@ @@@@@@ - @@@@@@@ @@@@@@@@@ @ - @@@@@@@@@@@@@ @@@@@@ @@@ - @@@@@@@@@@@@@@@@@@@@@@@ @@@ @@@@@@@ @@ - @@@@@ @@@@@@@ @@ @@@ @@@@@@@@@@ @@@ @@ - @@@ @@@@@@@@@@@@@ @@ @@ - @@ @@@ @@@@@ @@ @@@@@@@@@@ @@@ @@ - @@@ @@ @@@@@ @@@@ @@@@@ @@@ @@@ - @ @@@ @@@@@@ @@ @@@ @@@@ - @@ @@ @@@@@@@@ @@ @@@@ - @@ @@ @@ @@@@@ @@@ @@@ - @@@ @@@ @@@ @@ - @@@ @@ @@@ @@@ - @@ @@@ @@@@ @@ @@@ - @@ @@@ @@@@@@@@ @@@ @@@ - @@@ @@@@ @@@@@ @@@@ @@@@ - @@@ @@@@@@@@ @@@@@ @@@@@ - @@ @@@@ @@@@@@@@@@ @@@@@@@@@ - @@@@@@@ @@ @@ @@@@@@@ - @@@@ @@ @@@@@@@@@@ @@ - @@@@ @@@@@@@@@@@@@ @@ @@ @@ @@@ - @@@ @@@@@ @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@@@@@@@ @@@@@ @@@@@ - @@ @@@@ @@@@@@@@@@ @@@@@@@@@ - @@@@@@@ @@ @@ @@@@@@@ - @@@@ @@ @@@@@@@@@@ @@ - @@@@ @@@@@@@@@@@@@ @@ @@ @@ @@@ - @@@ @@@@@ @@@ @@@ @@@ - @@@@@@ @@@@@@@@@@ @@@@ - @@@ @@@@@@@@ @@@ - @@@ @@ @@@ @ - @@@ @@@@@@@@@@ @@@@@ @@@@ - @@@ @@ @@@@@@ @@@ - @@ @@ @@@ - @@ @@@@ @@ - @@@ @@@ @@@@ @@ @@ - @@@@@@@@@ @@@@ @@@@@@@@ @@ @@ - @@@@ @@ @@@@@@@ @@@@@@@@@@@ @@@ @@ - @@@@@@ @ @@@ @@@@@@@@@@@@@ @@ @ - @@ @@@ @@@@@@@ @@@@@@@@@@@ @@ @@ - @@ @@@ @@@@@@@@@@ @@@@@@@@@@@ @@ @@ - @@@ @@@ @@@@@@@@@@@@@@@@ @ - @@ @@@ @@@@@@@@@@@@@@ @@ - @@@@@@ @@@ @@@@ @@ @@@@@@@ @@@ - @@@@@ @@ @@@ @@@ @@@@@ @@@ - @@@ @@ @@ @@@ @@@@@ @@@@ - @@@@@@@@@@@@ @@@@@@@@@@@`, - } \ No newline at end of file diff --git a/frames/snoopydance.go b/frames/snoopydance.go new file mode 100644 index 0000000..8b29fb0 --- /dev/null +++ b/frames/snoopydance.go @@ -0,0 +1,307 @@ +package frames + +var SnoopyDancing = DefaultFrameType(SnoopyDancingFrames) + +var SnoopyDancingFrames = []string{ + ` + @ @ + @@@@@ @@@@ + @@@@@@@ @ @@@@ @@@@@ + @@@@ @@@@ @@ @@@@@ @@@@ @ + @@@ @@@ @@@@@@@@@@@ @@@@@@ @@@@@ @ + @@ @@@@@@ @@ @@@@@@@@@@@@ @ + @@ @ @ @@@@@@@@@@ + @ @@ @ @ @@ @@@@ @ + @ @@@@ @ @@ @@@ @@@@@ + @@@@@@@ @@@@@@@@@ + @@ @@@@@@@@@@@@ + @@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@@@@ @@ @ + @@@ @@@@@@ @@@@@ @@ + @@@ @@@@@@@ @@@@@@ @ + @@@@@ @@@@@@ @@@@ @@ + @@ @@@ @@@@@@@ + @@@ @@@ @@@@@@@ @@@@ @ + @@@@@ @@@@@@@ @@@ + @@@ @ @@ @ @ + @@@@@ @ @@@ + @@@@@@@@@@@@@@ @@@@ @@ + @@ @ + @@@@@@@@`, +} \ No newline at end of file diff --git a/main.go b/main.go index 8c86491..78e9e3e 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/MaArasteh/ascii-live/frames" + "github.com/hugomd/ascii-live/frames" "github.com/golang/glog" "github.com/gorilla/mux" From 7e414ac89da130fed34364a5e444a9ce7f916a9e Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 13:05:13 +0330 Subject: [PATCH 03/22] Create go.yml --- .github/workflows/go.yml | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..f7ea2ee --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,44 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... + + - name: Setup Go environment + uses: actions/setup-go@v5.0.1 + with: + # The Go version to download (if necessary) and use. Supports semver spec and ranges. Be sure to enclose this option in single quotation marks. + go-version: 1.22.3 + # Path to the go.mod or go.work file. + go-version-file: ../../go.mod + # Set this option to true if you want the action to always check for the latest available version that satisfies the version spec + check-latest: true + # Used to specify whether caching is needed. Set to true, if you'd like to enable caching. + cache: true + # Used to specify the path to a dependency file - go.sum + cache-dependency-path: ../../go.sum + + From af79987f0c01803696cf05b7a7ccd6daf902dd3e Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 13:27:07 +0330 Subject: [PATCH 04/22] Update go.yml --- .github/workflows/go.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f7ea2ee..f4bcaee 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -40,5 +40,10 @@ jobs: cache: true # Used to specify the path to a dependency file - go.sum cache-dependency-path: ../../go.sum + + - name: run + run: go run main.go + + From df7f9d1118746042de60e7bba394b31aeb97ca40 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 13:45:27 +0330 Subject: [PATCH 05/22] Update go.yml --- .github/workflows/go.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f4bcaee..6c3b4f9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -41,9 +41,6 @@ jobs: # Used to specify the path to a dependency file - go.sum cache-dependency-path: ../../go.sum - - name: run - run: go run main.go - From 0c298df1c24e95f11e20d8e8ad2a8d1c5402aa0b Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 13:52:29 +0330 Subject: [PATCH 06/22] Update go.yml --- .github/workflows/go.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6c3b4f9..46c741d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -40,7 +40,8 @@ jobs: cache: true # Used to specify the path to a dependency file - go.sum cache-dependency-path: ../../go.sum - + - name: Installing dependencies + run: go install github.com/gopherjs/gopherjs@v1.19.0-beta1 From 131d661bc9b4c3df096415f7e87f69bc35841861 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 14:19:05 +0330 Subject: [PATCH 07/22] Create gojekyll.yml --- .github/workflows/gojekyll.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/gojekyll.yml diff --git a/.github/workflows/gojekyll.yml b/.github/workflows/gojekyll.yml new file mode 100644 index 0000000..9fefe5d --- /dev/null +++ b/.github/workflows/gojekyll.yml @@ -0,0 +1,28 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "master" branch + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Go environment + uses: actions/setup-go@5.0.1 + - name: Installing dependencies + run: go install github.com/osteele/gojekyll@latest + - name: Building site + run: gojekyll build + - name: Gojekyll Serve + run: gojekyll serve + + From 3de438ace71116243c35288ffaa4d8f26f80b9a0 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 17:40:47 +0330 Subject: [PATCH 08/22] Delete .github/workflows/go.yml --- .github/workflows/go.yml | 47 ---------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 46c741d..0000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,47 +0,0 @@ -# This workflow will build a golang project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go - -name: Go - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.20' - - - name: Build - run: go build -v ./... - - - name: Test - run: go test -v ./... - - - name: Setup Go environment - uses: actions/setup-go@v5.0.1 - with: - # The Go version to download (if necessary) and use. Supports semver spec and ranges. Be sure to enclose this option in single quotation marks. - go-version: 1.22.3 - # Path to the go.mod or go.work file. - go-version-file: ../../go.mod - # Set this option to true if you want the action to always check for the latest available version that satisfies the version spec - check-latest: true - # Used to specify whether caching is needed. Set to true, if you'd like to enable caching. - cache: true - # Used to specify the path to a dependency file - go.sum - cache-dependency-path: ../../go.sum - - name: Installing dependencies - run: go install github.com/gopherjs/gopherjs@v1.19.0-beta1 - - - From e5b5b0a9ed39166797ac8f1bde68b97d4103d5ce Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 17:40:59 +0330 Subject: [PATCH 09/22] Delete .github/workflows/gojekyll.yml --- .github/workflows/gojekyll.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .github/workflows/gojekyll.yml diff --git a/.github/workflows/gojekyll.yml b/.github/workflows/gojekyll.yml deleted file mode 100644 index 9fefe5d..0000000 --- a/.github/workflows/gojekyll.yml +++ /dev/null @@ -1,28 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the "master" branch - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup Go environment - uses: actions/setup-go@5.0.1 - - name: Installing dependencies - run: go install github.com/osteele/gojekyll@latest - - name: Building site - run: gojekyll build - - name: Gojekyll Serve - run: gojekyll serve - - From 0a55153dce38f74e80182812d13edc5a1d3c80b0 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 17:43:36 +0330 Subject: [PATCH 10/22] Create gojekyll.yml --- .github/workflows/gojekyll.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/gojekyll.yml diff --git a/.github/workflows/gojekyll.yml b/.github/workflows/gojekyll.yml new file mode 100644 index 0000000..cfa7a41 --- /dev/null +++ b/.github/workflows/gojekyll.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "master" branch + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + + - name: Setup Go environment + uses: actions/setup-go@v5.0.1 + + - name: Installing GoJekyll + run: go install github.com/osteele/gojekyll@latest + - name: Building Go file + run: gojekyll build + - name: Serving Gojekyll + run: gojekyll serve From a7620de19cd86db9ded591a10779b57246e97c1b Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 17:52:06 +0330 Subject: [PATCH 11/22] Create Gemfile --- Gemfile | 1 + 1 file changed, 1 insertion(+) create mode 100644 Gemfile diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..8cd331a --- /dev/null +++ b/Gemfile @@ -0,0 +1 @@ +gem 'github-pages', group: :jekyll_plugins From 53fb39f8ea987552be8f7a24283ef1f1c0e5f053 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 17:53:35 +0330 Subject: [PATCH 12/22] Update gojekyll.yml --- .github/workflows/gojekyll.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gojekyll.yml b/.github/workflows/gojekyll.yml index cfa7a41..282cf50 100644 --- a/.github/workflows/gojekyll.yml +++ b/.github/workflows/gojekyll.yml @@ -27,10 +27,11 @@ jobs: - name: Setup Go environment uses: actions/setup-go@v5.0.1 - + - name: Updating Bundler + run: gem update bundler + - name: Installing GitHub Pages plugin from Gemfile + run: bundle install - name: Installing GoJekyll run: go install github.com/osteele/gojekyll@latest - name: Building Go file run: gojekyll build - - name: Serving Gojekyll - run: gojekyll serve From 154cdff3c829a7999cf46b4f2ad874e94ef19145 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 17:55:03 +0330 Subject: [PATCH 13/22] Update gojekyll.yml --- .github/workflows/gojekyll.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/gojekyll.yml b/.github/workflows/gojekyll.yml index 282cf50..62e4b0a 100644 --- a/.github/workflows/gojekyll.yml +++ b/.github/workflows/gojekyll.yml @@ -27,8 +27,6 @@ jobs: - name: Setup Go environment uses: actions/setup-go@v5.0.1 - - name: Updating Bundler - run: gem update bundler - name: Installing GitHub Pages plugin from Gemfile run: bundle install - name: Installing GoJekyll From a96a83a4bff56f8813fbb0c6d4325e8975c52071 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 19:07:57 +0330 Subject: [PATCH 14/22] Create pages.yml --- .github/workflows/pages.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..ffd4d3e --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,17 @@ +name: Go on Pages +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '1.21.x' + - name: Install dependencies + run: go get . + - name: Build + run: go build -v main.go From a0014315c09c286972706374d3f7ebe91b46ae12 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 19:25:19 +0330 Subject: [PATCH 15/22] Update pages.yml --- .github/workflows/pages.yml | 51 +++++++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index ffd4d3e..88eca76 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,17 +1,48 @@ name: Go on Pages -on: [push] + +on: + push: + branches: + - main + workflow_dispatch: jobs: build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + # Change your go version as needed + go-version: 1.17 + + - name: Build + run: go build -v ./... + + - name: Upload artifact for deployment jobs + uses: actions/upload-artifact@v2 + with: + name: go-app + path: | + . + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v2 with: - go-version: '1.21.x' - - name: Install dependencies - run: go get . - - name: Build - run: go build -v main.go + name: go-app + path: . + + - name: 'Deploy to Azure Web App' + - name: Deploy GitHub Pages site + uses: actions/deploy-pages@v4.0.5 + id: deploy-to-pages From c26cd7ce4f23a091c07b3fdcf88a2a8aa28e3366 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 19:29:25 +0330 Subject: [PATCH 16/22] Update pages.yml --- .github/workflows/pages.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 88eca76..8b345b2 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -31,9 +31,6 @@ jobs: deploy: runs-on: ubuntu-latest needs: build - environment: - name: 'Production' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} steps: - name: Download artifact from build job From ddbdbc1a96d15c27805f65e42b5bd98e4bf1ae2c Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 19:29:45 +0330 Subject: [PATCH 17/22] Update pages.yml --- .github/workflows/pages.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 8b345b2..f01b7a8 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -38,8 +38,7 @@ jobs: with: name: go-app path: . - - - name: 'Deploy to Azure Web App' + - name: Deploy GitHub Pages site uses: actions/deploy-pages@v4.0.5 id: deploy-to-pages From f3c84473231f35b2b77188a0c70748c6360cb36c Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 19:33:48 +0330 Subject: [PATCH 18/22] Update pages.yml --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index f01b7a8..452fb3d 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -33,7 +33,7 @@ jobs: needs: build steps: - - name: Download artifact from build job + - name: Downloading Artifact uses: actions/download-artifact@v2 with: name: go-app From 62a65343bf4ab3d75771ad7488bc59b68dabd0cc Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 19:38:34 +0330 Subject: [PATCH 19/22] Update pages.yml --- .github/workflows/pages.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 452fb3d..e320777 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -27,6 +27,9 @@ jobs: name: go-app path: | . + permissions: + id-token: write + pages: write deploy: runs-on: ubuntu-latest From 94408927dbaaf0620ea5dd801e38db07f8c80966 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 21:05:01 +0330 Subject: [PATCH 20/22] Update pages.yml --- .github/workflows/pages.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index e320777..37c8759 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -26,15 +26,15 @@ jobs: with: name: go-app path: | - . - permissions: - id-token: write - pages: write - + . deploy: runs-on: ubuntu-latest needs: build - + + permissions: + id-token: write + pages: write + steps: - name: Downloading Artifact uses: actions/download-artifact@v2 From e971b1f5b2abf9b56fc1d89f7ed7750884ba8b52 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 21:07:22 +0330 Subject: [PATCH 21/22] Update pages.yml --- .github/workflows/pages.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 37c8759..505b54e 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -10,10 +10,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@latest - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@latest with: # Change your go version as needed go-version: 1.17 @@ -22,7 +22,7 @@ jobs: run: go build -v ./... - name: Upload artifact for deployment jobs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@latest with: name: go-app path: | @@ -37,7 +37,7 @@ jobs: steps: - name: Downloading Artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@latest with: name: go-app path: . From dc0e8c6d21fd99f4bcae2ba1007ac360f3ece28f Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 21:12:48 +0330 Subject: [PATCH 22/22] Update pages.yml --- .github/workflows/pages.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 505b54e..60e43db 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -10,10 +10,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@latest + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@latest + uses: actions/setup-go@v5.0.1 with: # Change your go version as needed go-version: 1.17 @@ -22,7 +22,7 @@ jobs: run: go build -v ./... - name: Upload artifact for deployment jobs - uses: actions/upload-artifact@latest + uses: actions/upload-artifact@v4 with: name: go-app path: | @@ -37,7 +37,7 @@ jobs: steps: - name: Downloading Artifact - uses: actions/download-artifact@latest + uses: actions/download-artifact@v2 with: name: go-app path: .