Akamai logo

GitHub Action to deploy static artifacts to Akamai Netstorage

GitHub license

Deploy to Akamai Netstorage

This action allows you to deploy artifacts to Akamai NetStorage.

Akamai NetStorage is a holistic solution for maintaining large collections of on-demand digital content–including electronic images, streaming media files, software, documents, and other digital objects–while also offering performance compatible with today’s online delivery needs and customers’ expectations of instant access.

Usage

All sensitive variables should be set as encrypted secrets in the action's configuration.

Authentication

You need to declare a AKAMAI_PRIVATEKEY secret in your repository containing the following structure :

-----BEGIN RSA PRIVATE KEY-----
xxxx
-----END RSA PRIVATE KEY-----

To setup a key and attach it to your netstorage account, follow this Netstorage Overview.

NOTE: OPENSSH format (key begins with -----BEGIN OPENSSH PRIVATE KEY-----) may not work. Please use PEM format (begins with -----BEGIN RSA PRIVATE KEY-----) instead. Use the following to convert your key inline to PEM format ssh-keygen -p -m PEM -f ~/.ssh/id_rsa.

Inputs

uploadDirectory

Required uploadDirectory: '1234' Upload Directory in AkamaiNetStorage

artifcats path

Required path: 'dir' artifacts path

domainName

Required domainName: 'example1' Upload domain name in Akamai Netstorage

Netstorage upload path

Required nspath: 'static' Upload path in Akamai Netstorage

workflow.yml Example

Place in a .yml file such as this one in your .github/workflows folder. Refer to the documentation on workflow YAML syntax here.

steps:
    - uses: actions/checkout@v1
    - name: Build and Deploy
      uses: jdmevo123/akamai-netstorage-action@1.0
      env:
        AKAMAI_PRIVATEKEY: ${{ secrets.AKAMAI_PRIVATEKEY }}
      with:
        uploadDirectory: '12345'
        path: 'dir'
        domainName: 'example1'
        nspath: 'static'

Upload directory and domain name can be found in netstorage. Please follow this guide.

License

This project is distributed under the MIT license.