Skip to content

Commit

Permalink
release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
feng19 committed Feb 8, 2024
1 parent eea03bd commit c231b99
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 18 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Create Release

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: '26.1.1'
elixir-version: '1.15.7'
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
- name: Build
run: |
mix setup
mix assets.deploy
MIX_ENV=prod mix release --force --overwrite
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
name: X-Trace ${{ github.ref }}
tag_name: ${{ github.ref }}
body: 'Take a look at the assets to download and install this app.'
draft: true
prerelease: false
files: |
burrito_out/xtrace_linux
burrito_out/xtrace_linux_aarch64
burrito_out/xtrace_macos
burrito_out/xtrace_macos_aarch64
burrito_out/xtrace_windows.exe
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ x_trace-*.tar
npm-debug.log
/assets/node_modules/

/burrito_out/
/.idea/
*.iml
.hosts.erlang
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ config :esbuild,

# Configure tailwind (the version is required)
config :tailwind,
version: "3.3.2",
version: "3.4.0",
default: [
args: ~w(
--config=tailwind.config.js
Expand Down
16 changes: 13 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ defmodule XTrace.MixProject do
{:phoenix_live_view, "~> 0.19.0"},
{:floki, ">= 0.30.0", only: :test},
{:phoenix_live_dashboard, "~> 0.8.0"},
{:esbuild, "~> 0.7", runtime: Mix.env() == :dev},
{:esbuild, "~> 0.8", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.2.0", runtime: Mix.env() == :dev},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:jason, "~> 1.2"},
{:plug_cowboy, "~> 2.5"},
{:extrace, "~> 0.5"}
{:extrace, "~> 0.5"},
{:burrito, "~> 1.0"}
]
end

Expand All @@ -68,7 +69,16 @@ defmodule XTrace.MixProject do
applications: [x_trace: :permanent],
include_erts: true,
include_executables_for: [:unix, :windows],
steps: [:assemble]
steps: [:assemble, &Burrito.wrap/1],
burrito: [
targets: [
macos: [os: :darwin, cpu: :x86_64],
macos_aarch64: [os: :darwin, cpu: :aarch64],
linux: [os: :linux, cpu: :x86_64],
linux_aarch64: [os: :linux, cpu: :aarch64],
windows: [os: :windows, cpu: :x86_64]
]
]
]
]
end
Expand Down
Loading

0 comments on commit c231b99

Please sign in to comment.