Skip to content

Commit

Permalink
corrections of the update_version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jfilhoGN committed Dec 14, 2024
1 parent 371f91a commit 779f5c8
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/update_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,48 @@ name: Update JuliaHub Version
on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*'

jobs:
update_version:
runs-on: ubuntu-latest
steps:
# Checkout do código
- name: Checkout the repository
uses: actions/checkout@v3

# Instalar Julia
- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: '1.11'

- name: Authenticate with JuliaHub
env:
JULIAHUB_TOKEN: ${{ secrets.JULIAHUB_TOKEN }}
# Instalar dependências necessárias
- name: Install dependencies
run: |
julia -e 'using Pkg; Pkg.add("Registrator")'
# Atualizar os registros
- name: Update Julia Registries
run: |
julia -e 'using Pkg; Pkg.add("Registrator"); Pkg.add("TagBot")'
julia -e 'using Pkg; Pkg.Registry.update()'
- name: Trigger JuliaHub Update
# Registrar nova versão no JuliaHub
- name: Register new version with JuliaHub
env:
JULIAHUB_TOKEN: ${{ secrets.JULIAHUB_TOKEN }}
run: |
julia -e '
using Registrator;
Registrator.register(
auth_token=ENV["JULIAHUB_TOKEN"]
)
cd("."); # Garante que estamos no diretório do projeto
Registrator.register(auth_token=ENV["JULIAHUB_TOKEN"]);
'
# Adicionar o TagBot para gerenciar tags e releases
tagbot:
runs-on: ubuntu-latest
steps:
- name: TagBot
uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 779f5c8

Please sign in to comment.