This commit introduces a new template repository for creating custom HTML elements for the core web3 framework. The template includes a Go backend, an Angular custom element, and a full release cycle configuration. The Go backend is a simple HTTP server that serves the frontend and provides a basic API. The Angular custom element is a simple "Hello, world!" component that can be used as a starting point for more complex elements. The release cycle is configured with GoReleaser and GitHub Actions.
24 lines
516 B
YAML
24 lines
516 B
YAML
name: release
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.18
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v2
|
|
with:
|
|
version: latest
|
|
args: release --rm-dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|