Skip to content

Commit

Permalink
adding GA
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmagee committed Feb 2, 2025
1 parent 539460e commit 6fea479
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
30 changes: 15 additions & 15 deletions dagger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ type GitVersion struct {

// Build the project
func (m *Dota2Helper) Build(
// +defaultPath="."
// +ignore=["**/bin", "**/obj", "**/.idea", "**/docs", "**/.github", "**/.gitignore"]
// +defaultPath="."
// +ignore=["**/bin", "**/obj", "**/.idea", "**/docs", "**/.github", "**/.gitignore"]
git *dagger.Directory,
) (string, error) {

Expand All @@ -134,8 +134,8 @@ func (m *Dota2Helper) DotnetContainer() *dagger.Container {

// Scan the project for used packages and bundle licenses and metadata into a single file
func (m *Dota2Helper) GetPackagesFile(
// +defaultPath="."
// +ignore=["**/bin", "**/obj", "**/.idea", "**/docs", "**/.github", "**/.gitignore"]
// +defaultPath="."
// +ignore=["**/bin", "**/obj", "**/.idea", "**/docs", "**/.github", "**/.gitignore"]
git *dagger.Directory,
) *dagger.File {

Expand All @@ -149,8 +149,8 @@ func (m *Dota2Helper) GetPackagesFile(

// Get the semver details of the current git repository
func (m *Dota2Helper) GetGitVersion(
// +defaultPath="."
// +ignore=["**/bin", "**/obj", "**/.idea", "**/docs", "**/.github", "**/.gitignore"]
// +defaultPath="."
// +ignore=["**/bin", "**/obj", "**/.idea", "**/docs", "**/.github", "**/.gitignore"]
git *dagger.Directory,
) (GitVersion, error) {

Expand All @@ -176,12 +176,12 @@ func (m *Dota2Helper) GetGitVersion(

// Publish the project in release mode
func (m *Dota2Helper) DotnetPublish(
// +defaultPath="."
// +ignore=["**/bin", "**/obj", "**/.idea", "**/docs", "**/.github", "**/.gitignore"]
// +defaultPath="."
// +ignore=["**/bin", "**/obj", "**/.idea", "**/docs", "**/.github", "**/.gitignore"]
git *dagger.Directory,
// win-x64, win-arm64, osx-x64, osx-arm64, linux-x64, linux-arm64
// win-x64, win-arm64, osx-x64, osx-arm64, linux-x64, linux-arm64
rid Rid,
// The version to publish e.g 1.0.0
// The version to publish e.g 1.0.0
version string,
) *dagger.Container {

Expand Down Expand Up @@ -209,8 +209,8 @@ func (m *Dota2Helper) DotnetPublish(

// Publish the project in release mode and create a zip file
func (m *Dota2Helper) PublishAsZip(
// +defaultPath="."
// +ignore=["**/bin", "**/obj", "**/.idea", "**/docs", "**/.github", "**/.gitignore"]
// +defaultPath="."
// +ignore=["**/bin", "**/obj", "**/.idea", "**/docs", "**/.github", "**/.gitignore"]
git *dagger.Directory,
rid Rid,
) *dagger.File {
Expand All @@ -236,9 +236,9 @@ func (m *Dota2Helper) PublishAsZip(

// Create a release on github
func (m *Dota2Helper) Release(
// +defaultPath="/"
// +defaultPath="/"
git *dagger.Directory,
// PAT with access
// PAT with access
token *dagger.Secret) error {

zipFiles := []*dagger.File{
Expand Down Expand Up @@ -275,7 +275,7 @@ func (m *Dota2Helper) Release(

// Create audio assets using OpenAI TTS
func (m *Dota2Helper) CreateAudioAssets(
// The OpenAI API key
// The OpenAI API key
secret *dagger.Secret,
) (*dagger.Directory, error) {

Expand Down
4 changes: 4 additions & 0 deletions docs/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ title = "DOTA2 Helper - An objective timer helper"
# In order to add version information in the page's footer set to true.
# enableGitInfo = true

[services]
[services.googleAnalytics]
id = 'G-04BLCBEKDE'

# enable emoji processing in Markdown (valid only for pure markdown content)
enableEmoji = true

Expand Down
2 changes: 2 additions & 0 deletions docs/layouts/partials/custom_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@
{{ with resources.Get "images/favicon.svg" }}<link rel="icon" type="image/svg+xml" href="{{ .RelPermalink }}" />{{ end }}
{{ range seq 9 4 }}{{ $size := pow 2 . }}{{ $file := replace "images/favicon-##x##.png" "##" $size }}{{ with resources.Get $file }}
<link rel="icon" type="{{ .MediaType.Type }}" sizes="{{- $size -}}x{{- $size -}}" href="{{ .RelPermalink }}" />{{ end }}{{ end }}

{{ template "_internal/google_analytics.html" . }}

0 comments on commit 6fea479

Please sign in to comment.