Skip to content

Commit

Permalink
Add ArchiveFile.Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 29, 2022
1 parent 29ed111 commit d90532d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions archiveplugin/archiveplugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package archiveplugin

import (
"fmt"
"io/fs"

"github.com/gohugoio/hugoreleaser-plugins-api/model"
)
Expand Down Expand Up @@ -107,6 +108,9 @@ type ArchiveFile struct {

// Relative target path, including the name of the file.
TargetPath string `toml:"target_path"`

// Mode represents a file's mode and permission bits.
Mode fs.FileMode `toml:"mode"`
}

func (a *ArchiveFile) Init() error {
Expand Down

0 comments on commit d90532d

Please sign in to comment.